fix gradio queue
This commit is contained in:
parent
b9b433f7eb
commit
9d1eb265c3
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user