Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def predict_image(image):
|
|
| 31 |
predict_label = "Carries"
|
| 32 |
confidence = float(np.max(predictions))
|
| 33 |
prediction_dict = {"prediction": predict_label, "confidence": confidence}
|
| 34 |
-
return prediction_dict
|
| 35 |
|
| 36 |
# Create the interface
|
| 37 |
input_interface = gr.Image()
|
|
|
|
| 31 |
predict_label = "Carries"
|
| 32 |
confidence = float(np.max(predictions))
|
| 33 |
prediction_dict = {"prediction": predict_label, "confidence": confidence}
|
| 34 |
+
return json.dumps(prediction_dict, indent=2)
|
| 35 |
|
| 36 |
# Create the interface
|
| 37 |
input_interface = gr.Image()
|