Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def predict_image(image):
|
|
| 41 |
return json.dumps(prediction_dict, indent=2)
|
| 42 |
|
| 43 |
# Create the interface
|
| 44 |
-
input_interface = gr.Image()
|
| 45 |
output_interface = "json"
|
| 46 |
|
| 47 |
iface = gr.Interface(
|
|
|
|
| 41 |
return json.dumps(prediction_dict, indent=2)
|
| 42 |
|
| 43 |
# Create the interface
|
| 44 |
+
input_interface = gr.Image(type = "pil")
|
| 45 |
output_interface = "json"
|
| 46 |
|
| 47 |
iface = gr.Interface(
|