Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,12 +24,8 @@ def get_pipeline_prediction(pil_image):
|
|
| 24 |
return processed_image
|
| 25 |
|
| 26 |
|
| 27 |
-
demo = gr.Interface(
|
| 28 |
-
|
| 29 |
-
inputs=gr.Image(label="Input image",
|
| 30 |
-
type="pil"),
|
| 31 |
-
outputs=gr.Image(label="Output image with predicted instances",
|
| 32 |
-
type="pil")
|
| 33 |
)
|
| 34 |
|
| 35 |
|
|
|
|
| 24 |
return processed_image
|
| 25 |
|
| 26 |
|
| 27 |
+
demo = gr.Interface(fn=get_pipeline_prediction,inputs=gr.Image(label="Input image", type="pil"),
|
| 28 |
+
outputs=gr.Image(label="Output image with predicted instances", type="pil")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
)
|
| 30 |
|
| 31 |
|