Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,8 +50,8 @@ def predict(image):
|
|
| 50 |
# Define the Gradio interface
|
| 51 |
gr.Interface(
|
| 52 |
fn=predict,
|
| 53 |
-
inputs=gr.
|
| 54 |
-
outputs=gr.
|
| 55 |
examples=['img/1.png', 'img/2.png'],
|
| 56 |
title="MASFNet Object Detection",
|
| 57 |
theme="default",
|
|
|
|
| 50 |
# Define the Gradio interface
|
| 51 |
gr.Interface(
|
| 52 |
fn=predict,
|
| 53 |
+
inputs=gr.Image(label="Input image", type="pil"),
|
| 54 |
+
outputs=gr.Image(label="Output image with predicted instances", type="pil"),
|
| 55 |
examples=['img/1.png', 'img/2.png'],
|
| 56 |
title="MASFNet Object Detection",
|
| 57 |
theme="default",
|