Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|