Spaces:
Running
on
A100
Running
on
A100
eranlevinlt
commited on
Update app.py
Browse filesReintroduce the concurrency limitation.
app.py
CHANGED
@@ -771,7 +771,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
771 |
*txt2vid_advanced,
|
772 |
],
|
773 |
outputs=txt2vid_output,
|
774 |
-
concurrency_limit=
|
775 |
concurrency_id="generate_video",
|
776 |
)
|
777 |
|
@@ -789,9 +789,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
|
|
789 |
*img2vid_advanced,
|
790 |
],
|
791 |
outputs=img2vid_output,
|
792 |
-
concurrency_limit=
|
793 |
concurrency_id="generate_video",
|
794 |
)
|
795 |
|
796 |
if __name__ == "__main__":
|
797 |
-
iface.launch(share=True, show_api=False)
|
|
|
771 |
*txt2vid_advanced,
|
772 |
],
|
773 |
outputs=txt2vid_output,
|
774 |
+
concurrency_limit=1,
|
775 |
concurrency_id="generate_video",
|
776 |
)
|
777 |
|
|
|
789 |
*img2vid_advanced,
|
790 |
],
|
791 |
outputs=img2vid_output,
|
792 |
+
concurrency_limit=1,
|
793 |
concurrency_id="generate_video",
|
794 |
)
|
795 |
|
796 |
if __name__ == "__main__":
|
797 |
+
iface.queue(max_size=64, default_concurrency_limit=1, api_open=False).launch(share=True, show_api=False)
|