Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,12 +39,10 @@ def classify_images(img_ultrasound=None, img_oct=None, img_fundus=None, img_fluo
|
|
39 |
detailed_predictions.append(f"{key}: {pred} ({prob_pred:.2f}%)")
|
40 |
else:
|
41 |
detailed_predictions.append(f"{key}: No image provided")
|
42 |
-
|
43 |
# Handle final decision logic here as needed
|
44 |
|
45 |
return "\n".join(detailed_predictions)
|
46 |
|
47 |
-
|
48 |
# Define the Gradio interface inputs and outputs
|
49 |
inputs = [gr.Image(label=f"{modality} Image", optional=True) for modality in modality_keys]
|
50 |
output = gr.Text(label="Predictions")
|
|
|
39 |
detailed_predictions.append(f"{key}: {pred} ({prob_pred:.2f}%)")
|
40 |
else:
|
41 |
detailed_predictions.append(f"{key}: No image provided")
|
|
|
42 |
# Handle final decision logic here as needed
|
43 |
|
44 |
return "\n".join(detailed_predictions)
|
45 |
|
|
|
46 |
# Define the Gradio interface inputs and outputs
|
47 |
inputs = [gr.Image(label=f"{modality} Image", optional=True) for modality in modality_keys]
|
48 |
output = gr.Text(label="Predictions")
|