paloma99 commited on
Commit
6e64e5c
·
verified ·
1 Parent(s): 2b8a352

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -83,8 +83,8 @@ def predict_image(input):
83
  # Get the confidence score of the predicted class
84
  confidence_score = predictions[0][predicted_class_index]
85
 
86
- # Return input image path, predicted class label, and confidence score
87
- return input, {predicted_class_label: confidence_score}
88
 
89
 
90
  image_gradio_app = gr.Interface(
 
83
  # Get the confidence score of the predicted class
84
  confidence_score = predictions[0][predicted_class_index]
85
 
86
+ # Return predicted class label and confidence score
87
+ return {predicted_class_label: confidence_score}
88
 
89
 
90
  image_gradio_app = gr.Interface(