1
0
mirror of synced 2025-01-19 09:27:25 +01:00

fix gradio queue

This commit is contained in:
源文雨 2023-04-01 15:38:04 +08:00
parent b9b433f7eb
commit 9d1eb265c3

View File

@ -635,6 +635,6 @@ with gr.Blocks() as app:
parser.add_argument("--colab", action='store_true', help="Launch in colab") parser.add_argument("--colab", action='store_true', help="Launch in colab")
cmd_opts = parser.parse_args() cmd_opts = parser.parse_args()
if cmd_opts.colab: if cmd_opts.colab:
app.launch(share=True) app.queue(concurrency_count=511, max_size=1022).launch(share=True)
else: else:
app.queue(concurrency_count=511, max_size=1022).launch(server_name="0.0.0.0",inbrowser=True,server_port=7865,quiet=True) app.queue(concurrency_count=511, max_size=1022).launch(server_name="0.0.0.0",inbrowser=True,server_port=7865,quiet=True)