Ahmed235 commited on
Commit
f169da1
·
verified ·
1 Parent(s): 288ae89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()