Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
67 |
-
outputs="
|
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
|