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