DHEIVER commited on
Commit
36a5158
1 Parent(s): 2d807c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -61,11 +61,15 @@ def predict_image(input_image):
61
 
62
 
63
  # Crie uma interface Gradio para fazer previsões
 
64
  iface = gr.Interface(
65
  fn=predict_image,
66
- inputs="image",
67
- outputs="text",
68
- interpretation="default"
 
 
 
69
  )
70
 
71
  # Execute a interface Gradio
 
61
 
62
 
63
  # Crie uma interface Gradio para fazer previsões
64
+ example_image = "example_image.jpg" # Path to your example image
65
  iface = gr.Interface(
66
  fn=predict_image,
67
+ inputs=gr.inputs.Image(label="Upload an Image", type="file", examples=example_image),
68
+ outputs=gr.outputs.Text(label="Prediction", type="markdown"),
69
+ interpretation="default",
70
+ title="Image Classifier",
71
+ description="Upload an image to classify it as 'Normal' or 'Cataract'.",
72
+ theme="compact"
73
  )
74
 
75
  # Execute a interface Gradio