Minbz commited on
Commit
a5aed27
·
verified ·
1 Parent(s): 3ab85e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def predict(image):
92
  # Extract the predicted class label with the highest probability
93
  predicted_label = np.argmax(predictions[0])
94
 
95
- return predicted_label
96
 
97
  image_component = gr.Image(type="pil", label="Chest X-ray Image")
98
  label_component = gr.Label(label="Classification result", num_top_classes=1)
 
92
  # Extract the predicted class label with the highest probability
93
  predicted_label = np.argmax(predictions[0])
94
 
95
+ return str(predicted_label)
96
 
97
  image_component = gr.Image(type="pil", label="Chest X-ray Image")
98
  label_component = gr.Label(label="Classification result", num_top_classes=1)