Add concurrency_id to video generation blocks for improved task management
Browse files
app.py
CHANGED
@@ -568,6 +568,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
568 |
],
|
569 |
outputs=txt2vid_output,
|
570 |
concurrency_limit=1,
|
|
|
571 |
queue=True,
|
572 |
)
|
573 |
|
@@ -586,6 +587,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
586 |
],
|
587 |
outputs=img2vid_output,
|
588 |
concurrency_limit=1,
|
|
|
589 |
queue=True,
|
590 |
)
|
591 |
|
|
|
568 |
],
|
569 |
outputs=txt2vid_output,
|
570 |
concurrency_limit=1,
|
571 |
+
concurrency_id="generate_video",
|
572 |
queue=True,
|
573 |
)
|
574 |
|
|
|
587 |
],
|
588 |
outputs=img2vid_output,
|
589 |
concurrency_limit=1,
|
590 |
+
concurrency_id="generate_video",
|
591 |
queue=True,
|
592 |
)
|
593 |
|