Ethium commited on
Commit
9e014b9
1 Parent(s): b057ab9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
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")