Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,12 +10,8 @@ with gr.Blocks() as demo:
|
|
| 10 |
boton = gr.Button("Saludar")
|
| 11 |
boton.click(fn=saludo, inputs=nombre, outputs=salida)
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
server_name="0.0.0.0",
|
| 16 |
-
server_port=7860,
|
| 17 |
-
show_api=True # 👈 esto es lo que expone la API
|
| 18 |
-
)
|
| 19 |
|
| 20 |
|
| 21 |
#import os
|
|
|
|
| 10 |
boton = gr.Button("Saludar")
|
| 11 |
boton.click(fn=saludo, inputs=nombre, outputs=salida)
|
| 12 |
|
| 13 |
+
# 👇 importante: sin server_name ni server_port en Spaces
|
| 14 |
+
demo.launch(show_api=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
#import os
|