Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,9 +36,9 @@ def predict_image(image):
|
|
| 36 |
predict_label = "Clean"
|
| 37 |
else:
|
| 38 |
predict_label = "Carries"
|
| 39 |
-
confidence = float(np.max(predictions))
|
| 40 |
-
prediction_dict = {"prediction": predict_label
|
| 41 |
-
return json.dumps(prediction_dict, indent=
|
| 42 |
|
| 43 |
# Create the interface
|
| 44 |
input_interface = gr.Image(type = "pil")
|
|
|
|
| 36 |
predict_label = "Clean"
|
| 37 |
else:
|
| 38 |
predict_label = "Carries"
|
| 39 |
+
#confidence = float(np.max(predictions))
|
| 40 |
+
prediction_dict = {"prediction": predict_label}
|
| 41 |
+
return json.dumps(prediction_dict, indent=1)
|
| 42 |
|
| 43 |
# Create the interface
|
| 44 |
input_interface = gr.Image(type = "pil")
|