krrishD commited on
Commit
b03281e
1 Parent(s): 5ac0b57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -103,7 +103,7 @@ def preprocess_mask(mask):
103
  # output the sampled images
104
  def main(user_image):
105
  # accept the image as input
106
- with open(user_image, 'rb') as f:
107
  data = f.read()
108
  decodeImage(data, user_image.name)
109
  init_image = PIL.Image.open(user_image).convert("RGB")
 
103
  # output the sampled images
104
  def main(user_image):
105
  # accept the image as input
106
+ with open(user_image.name, 'rb') as f:
107
  data = f.read()
108
  decodeImage(data, user_image.name)
109
  init_image = PIL.Image.open(user_image).convert("RGB")