Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,8 +35,8 @@ def predict_segmentation(image: Image.Image):
|
|
| 35 |
|
| 36 |
return output_image
|
| 37 |
|
| 38 |
-
image_input = gr.
|
| 39 |
-
image_output = gr.
|
| 40 |
|
| 41 |
iface = gr.Interface(fn=predict_segmentation, inputs=image_input, outputs=image_output)
|
| 42 |
iface.launch()
|
|
|
|
| 35 |
|
| 36 |
return output_image
|
| 37 |
|
| 38 |
+
image_input = gr.Image(shape=(256, 256), source="upload")
|
| 39 |
+
image_output = gr.Image(type="pil")
|
| 40 |
|
| 41 |
iface = gr.Interface(fn=predict_segmentation, inputs=image_input, outputs=image_output)
|
| 42 |
iface.launch()
|