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