Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,12 +76,12 @@ def estimar_edad(imagen, modelo_seleccionado="mejor"):
|
|
| 76 |
iface = gr.Interface(
|
| 77 |
fn=estimar_edad,
|
| 78 |
inputs=[
|
| 79 |
-
gr.
|
| 80 |
-
gr.
|
| 81 |
],
|
| 82 |
-
outputs="text"
|
|
|
|
| 83 |
)
|
| 84 |
|
| 85 |
# Lanzar la interfaz de Gradio
|
| 86 |
iface.launch()
|
| 87 |
-
|
|
|
|
| 76 |
iface = gr.Interface(
|
| 77 |
fn=estimar_edad,
|
| 78 |
inputs=[
|
| 79 |
+
gr.Image(type="numpy", label="Sube una imagen"),
|
| 80 |
+
gr.Radio(choices=["mejor", "final"], label="Selecciona el modelo", default="mejor") # Elegir modelo
|
| 81 |
],
|
| 82 |
+
outputs="text",
|
| 83 |
+
flagging="never" # Desactiva la funcionalidad de flagging
|
| 84 |
)
|
| 85 |
|
| 86 |
# Lanzar la interfaz de Gradio
|
| 87 |
iface.launch()
|
|
|