Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -577,12 +577,8 @@ with gr.Blocks(title="馃幀 Generador de Videos IA", theme=gr.themes.Soft()) as d
|
|
| 577 |
if __name__ == "__main__":
|
| 578 |
logger.info("馃殌 Iniciando aplicaci贸n Generador de Videos IA...")
|
| 579 |
|
| 580 |
-
# Configurar la cola con timeout extendido
|
| 581 |
-
demo.queue(
|
| 582 |
-
concurrency_count=1, # Procesar un video a la vez
|
| 583 |
-
max_size=10, # M谩ximo 10 en cola
|
| 584 |
-
api_open=False
|
| 585 |
-
)
|
| 586 |
|
| 587 |
# Lanzar con configuraci贸n de timeout
|
| 588 |
demo.launch(
|
|
@@ -590,10 +586,5 @@ if __name__ == "__main__":
|
|
| 590 |
server_port=7860,
|
| 591 |
show_api=False,
|
| 592 |
enable_queue=True,
|
| 593 |
-
max_threads=40
|
| 594 |
-
server_kwargs={
|
| 595 |
-
"timeout_keep_alive": 1800, # 30 minutos
|
| 596 |
-
"timeout_graceful_shutdown": 30,
|
| 597 |
-
"limit_concurrency": 10
|
| 598 |
-
}
|
| 599 |
)
|
|
|
|
| 577 |
if __name__ == "__main__":
|
| 578 |
logger.info("馃殌 Iniciando aplicaci贸n Generador de Videos IA...")
|
| 579 |
|
| 580 |
+
# Configurar la cola con timeout extendido (par谩metros compatibles con tu versi贸n de Gradio)
|
| 581 |
+
demo.queue(max_size=10)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 582 |
|
| 583 |
# Lanzar con configuraci贸n de timeout
|
| 584 |
demo.launch(
|
|
|
|
| 586 |
server_port=7860,
|
| 587 |
show_api=False,
|
| 588 |
enable_queue=True,
|
| 589 |
+
max_threads=40
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 590 |
)
|