mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-07 19:40:44 +08:00
Move to Gradio 4.23.0 (#1928)
This commit is contained in:
15
infer-web.py
15
infer-web.py
@@ -120,16 +120,6 @@ else:
|
||||
gpus = "-".join([i[0] for i in gpu_infos])
|
||||
|
||||
|
||||
class ToolButton(gr.Button, gr.components.FormComponent):
|
||||
"""Small button with single emoji as text, fits inside gradio forms"""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(variant="tool", **kwargs)
|
||||
|
||||
def get_block_name(self):
|
||||
return "button"
|
||||
|
||||
|
||||
weight_root = os.getenv("weight_root")
|
||||
weight_uvr5_root = os.getenv("weight_uvr5_root")
|
||||
index_root = os.getenv("index_root")
|
||||
@@ -1609,9 +1599,10 @@ with gr.Blocks(title="RVC WebUI") as app:
|
||||
gr.Markdown(traceback.format_exc())
|
||||
|
||||
if config.iscolab:
|
||||
app.queue(concurrency_count=511, max_size=1022).launch(share=True)
|
||||
app.queue(max_size=1022).launch(share=True, max_threads=511)
|
||||
else:
|
||||
app.queue(concurrency_count=511, max_size=1022).launch(
|
||||
app.queue(max_size=1022).launch(
|
||||
max_threads=511,
|
||||
server_name="0.0.0.0",
|
||||
inbrowser=not config.noautoopen,
|
||||
server_port=config.listen_port,
|
||||
|
||||
Reference in New Issue
Block a user