Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,12 +42,10 @@ def predict_image(image):
|
|
| 42 |
|
| 43 |
# Create the interface
|
| 44 |
input_interface = gr.Image(type = "pil")
|
| 45 |
-
output_interface = "json"
|
| 46 |
-
|
| 47 |
iface = gr.Interface(
|
| 48 |
fn=predict_image,
|
| 49 |
inputs=input_interface,
|
| 50 |
-
outputs=
|
| 51 |
|
| 52 |
# Launch the interface
|
| 53 |
iface.launch(share=True)
|
|
|
|
| 42 |
|
| 43 |
# Create the interface
|
| 44 |
input_interface = gr.Image(type = "pil")
|
|
|
|
|
|
|
| 45 |
iface = gr.Interface(
|
| 46 |
fn=predict_image,
|
| 47 |
inputs=input_interface,
|
| 48 |
+
outputs="json")
|
| 49 |
|
| 50 |
# Launch the interface
|
| 51 |
iface.launch(share=True)
|