Move to Gradio 4.23.0 (#1928)

This commit is contained in:
Просто Хаскер 2024-04-11 09:46:02 +02:00 committed by GitHub
parent a84bba36be
commit 8fd883d739
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 15 additions and 24 deletions

View File

@ -57,7 +57,7 @@
"!apt-get -y install build-essential python3-dev ffmpeg\n",
"!pip3 install --upgrade setuptools wheel\n",
"!pip3 install --upgrade pip\n",
"!pip3 install faiss-cpu==1.7.2 fairseq gradio==3.14.0 ffmpeg ffmpeg-python praat-parselmouth pyworld numpy==1.23.5 numba==0.56.4 librosa==0.9.2"
"!pip3 install faiss-cpu==1.7.2 fairseq gradio==4.23.0 ffmpeg ffmpeg-python praat-parselmouth pyworld numpy==1.23.5 numba==0.56.4 librosa==0.9.2"
]
},
{

View File

@ -57,7 +57,7 @@
"!apt-get -y install build-essential python3-dev ffmpeg\n",
"!pip3 install --upgrade setuptools wheel\n",
"!pip3 install --upgrade pip\n",
"!pip3 install faiss-cpu==1.7.2 fairseq gradio==3.14.0 ffmpeg ffmpeg-python praat-parselmouth pyworld numpy==1.23.5 numba==0.56.4 librosa==0.9.2"
"!pip3 install faiss-cpu==1.7.2 fairseq gradio==4.23.0 ffmpeg ffmpeg-python praat-parselmouth pyworld numpy==1.23.5 numba==0.56.4 librosa==0.9.2"
]
},
{

View File

@ -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,

View File

@ -7,7 +7,7 @@ librosa==0.9.1
llvmlite==0.39.0
fairseq==0.12.2
faiss-cpu==1.7.3
gradio==3.34.0
gradio==4.23.0
Cython
pydub>=0.25.1
soundfile>=0.12.1
@ -42,7 +42,7 @@ httpx
onnxruntime
onnxruntime-gpu
torchcrepe==0.0.20
fastapi==0.88
fastapi
ffmpy==0.3.1
python-dotenv>=1.0.0
av

View File

@ -6,7 +6,7 @@ librosa==0.9.1
llvmlite==0.39.0
fairseq==0.12.2
faiss-cpu==1.7.3
gradio==3.34.0
gradio==4.23.0
Cython
pydub>=0.25.1
soundfile>=0.12.1
@ -40,7 +40,7 @@ pyworld==0.3.2
httpx
onnxruntime-directml
torchcrepe==0.0.20
fastapi==0.88
fastapi
ffmpy==0.3.1
python-dotenv>=1.0.0
av

View File

@ -11,7 +11,7 @@ librosa==0.9.1
llvmlite==0.39.0
fairseq==0.12.2
faiss-cpu==1.7.3
gradio==3.34.0
gradio==4.23.0
Cython
pydub>=0.25.1
soundfile>=0.12.1
@ -46,7 +46,7 @@ httpx
onnxruntime; sys_platform == 'darwin'
onnxruntime-gpu; sys_platform != 'darwin'
torchcrepe==0.0.20
fastapi==0.88
fastapi
ffmpy==0.3.1
python-dotenv>=1.0.0
av

View File

@ -6,7 +6,7 @@ librosa==0.9.1
llvmlite
fairseq @ git+https://github.com/One-sixth/fairseq.git
faiss-cpu
gradio==3.34.0
gradio==4.23.0
Cython
pydub>=0.25.1
soundfile>=0.12.1
@ -41,7 +41,7 @@ httpx
onnxruntime; sys_platform == 'darwin'
onnxruntime-gpu; sys_platform != 'darwin'
torchcrepe==0.0.20
fastapi==0.88
fastapi
torchfcpe
ffmpy==0.3.1
python-dotenv>=1.0.0

View File

@ -6,7 +6,7 @@ librosa==0.9.1
llvmlite
fairseq
faiss-cpu
gradio==3.34.0
gradio==4.23.0
Cython
pydub>=0.25.1
soundfile>=0.12.1
@ -41,7 +41,7 @@ httpx
onnxruntime; sys_platform == 'darwin'
onnxruntime-gpu; sys_platform != 'darwin'
torchcrepe==0.0.20
fastapi==0.88
fastapi
torchfcpe
ffmpy==0.3.1
python-dotenv>=1.0.0