Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
87 |
-
return
|
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(
|