krrishD commited on
Commit
8dec0c2
·
1 Parent(s): d057368

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -92,9 +92,8 @@ def preprocess_mask(mask):
92
  # output the sampled images
93
  def main(user_image):
94
  # accept the image as input
95
- return user_image
96
- pillow_heif.register_heif_opener()
97
- init_image = PIL.Image.open(user_image).convert("RGB")
98
  try:
99
  #rotate accordingly
100
  init_image = ImageOps.exif_transpose(init_image)
 
92
  # output the sampled images
93
  def main(user_image):
94
  # accept the image as input
95
+ init_image = PIL.Image.open(user_image)
96
+ return init_image
 
97
  try:
98
  #rotate accordingly
99
  init_image = ImageOps.exif_transpose(init_image)