DHEIVER commited on
Commit
f52413b
·
1 Parent(s): 94fe511

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -64,12 +64,13 @@ def predict_image(input_image):
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
 
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, min_size=(100, 100), accept="image/*", clearable=True, resize=(300, 300)),
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
+ loading="circle"
74
  )
75
 
76
  # Execute a interface Gradio