Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1358,10 +1358,17 @@ if __name__ == "__main__":
|
|
1358 |
logger.critical(f"Fallo al importar MoviePy. Aseg煤rate de que est谩 instalado. Error: {e}", exc_info=True)
|
1359 |
logger.info("Iniciando aplicaci贸n Gradio...")
|
1360 |
try:
|
1361 |
-
app.queue(
|
|
|
|
|
|
|
1362 |
server_name="0.0.0.0",
|
1363 |
server_port=7860,
|
1364 |
-
share=False
|
|
|
|
|
|
|
|
|
1365 |
)
|
1366 |
except Exception as e:
|
1367 |
logger.critical(f"No se pudo iniciar la app: {str(e)}", exc_info=True)
|
|
|
1358 |
logger.critical(f"Fallo al importar MoviePy. Aseg煤rate de que est谩 instalado. Error: {e}", exc_info=True)
|
1359 |
logger.info("Iniciando aplicaci贸n Gradio...")
|
1360 |
try:
|
1361 |
+
app.queue(
|
1362 |
+
max_size=1,
|
1363 |
+
api_open=False
|
1364 |
+
).launch(
|
1365 |
server_name="0.0.0.0",
|
1366 |
server_port=7860,
|
1367 |
+
share=False,
|
1368 |
+
prevent_thread_lock=True,
|
1369 |
+
show_error=True,
|
1370 |
+
max_threads=1,
|
1371 |
+
timeout=10800 # 3 horas en segundos
|
1372 |
)
|
1373 |
except Exception as e:
|
1374 |
logger.critical(f"No se pudo iniciar la app: {str(e)}", exc_info=True)
|