Update inference_webui.py:delete concurrency_count=511, max_size=1022

inference_webui.py 616 <module>
app.queue(concurrency_count=511, max_size=1022).launch(

blocks.py 2012 queue
raise DeprecationWarning(

DeprecationWarning:
concurrency_count has been deprecated. Set the concurrency_limit directly on event listeners e.g. btn.click(fn, ..., concurrency_limit=10) or gr.Interface(concurrency_limit=10). If necessary, the total number of workers can be configured via `max_threads` in launch().
This commit is contained in:
ilyaml218 2024-05-10 14:27:22 +08:00 committed by GitHub
parent 8640c76a5b
commit 25ee24f515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -613,7 +613,7 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
button5.click(cut5, [text_inp], [text_opt]) button5.click(cut5, [text_inp], [text_opt])
gr.Markdown(value=i18n("后续将支持转音素、手工修改音素、语音合成分步执行。")) gr.Markdown(value=i18n("后续将支持转音素、手工修改音素、语音合成分步执行。"))
app.queue(concurrency_count=511, max_size=1022).launch( app.queue().launch(
server_name="0.0.0.0", server_name="0.0.0.0",
inbrowser=True, inbrowser=True,
share=is_share, share=is_share,