Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,10 +11,10 @@ with gr.Blocks() as demo:
|
|
| 11 |
boton = gr.Button("Saludar")
|
| 12 |
boton.click(fn=saludo, inputs=nombre, outputs=salida)
|
| 13 |
|
| 14 |
-
# Hugging Face Spaces espera puerto
|
|
|
|
| 15 |
if __name__ == "__main__":
|
| 16 |
-
|
| 17 |
-
demo.launch(server_name="0.0.0.0", server_port=port, show_api=True)
|
| 18 |
|
| 19 |
|
| 20 |
|
|
|
|
| 11 |
boton = gr.Button("Saludar")
|
| 12 |
boton.click(fn=saludo, inputs=nombre, outputs=salida)
|
| 13 |
|
| 14 |
+
# Hugging Face Spaces espera que la aplicaci贸n est茅 en el puerto 7860, accesible desde 0.0.0.0
|
| 15 |
+
# Se establece un valor fijo para evitar problemas de configuraci贸n
|
| 16 |
if __name__ == "__main__":
|
| 17 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, show_api=True)
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
|