Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,9 @@ def segment(input_img):
|
|
10 |
return mask_image
|
11 |
|
12 |
|
13 |
-
demo = gr.Interface(segment,
|
|
|
|
|
|
|
14 |
if __name__ == "__main__":
|
15 |
demo.launch()
|
|
|
10 |
return mask_image
|
11 |
|
12 |
|
13 |
+
demo = gr.Interface(fn=segment,
|
14 |
+
inputs=gr.Image(shape=(400, 600)),
|
15 |
+
outputs=['image'],
|
16 |
+
allow_flagging='never')
|
17 |
if __name__ == "__main__":
|
18 |
demo.launch()
|