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