Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,10 +61,9 @@ def predict_image(input_image):
|
|
| 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",
|
| 68 |
outputs=gr.outputs.Text(label="Prediction", type="markdown"),
|
| 69 |
interpretation="default",
|
| 70 |
title="Image Classifier",
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
# Crie uma interface Gradio para fazer previsões
|
|
|
|
| 64 |
iface = gr.Interface(
|
| 65 |
fn=predict_image,
|
| 66 |
+
inputs=gr.inputs.Image(label="Upload an Image", type="file", min_size=(100, 100), accept="image/*", clearable=True, resize=(300, 300)),
|
| 67 |
outputs=gr.outputs.Text(label="Prediction", type="markdown"),
|
| 68 |
interpretation="default",
|
| 69 |
title="Image Classifier",
|