Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,6 @@ def predict_image(image):
|
|
21 |
return result, "If you don't have an image, please download one from this link: https://drive.google.com/drive/folders/1Dr11dKuSlgtWaTzNLRixzB19y588iNib?usp=sharing"
|
22 |
|
23 |
# Crear la interfaz de Gradio
|
24 |
-
iface = gr.Interface(fn=predict_image,
|
25 |
-
inputs=gr.Image(type="pil"),
|
26 |
-
outputs=[gr.Textbox(label="Prediction"), gr.Textbox(label="Download Link")],
|
27 |
-
live=True)
|
28 |
-
|
29 |
# Lanzar la interfaz
|
30 |
iface.launch()
|
|
|
21 |
return result, "If you don't have an image, please download one from this link: https://drive.google.com/drive/folders/1Dr11dKuSlgtWaTzNLRixzB19y588iNib?usp=sharing"
|
22 |
|
23 |
# Crear la interfaz de Gradio
|
24 |
+
iface = gr.Interface(fn=predict_image,inputs=gr.Image(type="pil"), outputs=[gr.Textbox(label="Prediction"), gr.Textbox(label="Download Link")], live=True)
|
|
|
|
|
|
|
|
|
25 |
# Lanzar la interfaz
|
26 |
iface.launch()
|