Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -99,6 +99,8 @@ def process(
|
|
99 |
if not input_image:
|
100 |
gr.Info("Please upload an image.")
|
101 |
return None
|
|
|
|
|
102 |
|
103 |
if not mask:
|
104 |
gr.Info("Please draw a mask on the image.")
|
|
|
99 |
if not input_image:
|
100 |
gr.Info("Please upload an image.")
|
101 |
return None
|
102 |
+
else:
|
103 |
+
input_image = Image.open(input_image)
|
104 |
|
105 |
if not mask:
|
106 |
gr.Info("Please draw a mask on the image.")
|