From f36cdf70e4cb3a6bf11a34a491eeda4b4555ffb7 Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Fri, 30 Aug 2024 06:33:56 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=90=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GPT_SoVITS/inference_webui.py | 1 + GPT_SoVITS/inference_webui_fast.py | 2 ++ tools/uvr5/webui.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/GPT_SoVITS/inference_webui.py b/GPT_SoVITS/inference_webui.py index 5aff4ae..4055425 100644 --- a/GPT_SoVITS/inference_webui.py +++ b/GPT_SoVITS/inference_webui.py @@ -761,6 +761,7 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app: # button4.click(cut4, [text_inp], [text_opt]) # button5.click(cut5, [text_inp], [text_opt]) # gr.Markdown(html_center(i18n("后续将支持转音素、手工修改音素、语音合成分步执行。"))) + i18n.translate_blocks(app) if __name__ == '__main__': app.queue().launch(#concurrency_count=511, max_size=1022 diff --git a/GPT_SoVITS/inference_webui_fast.py b/GPT_SoVITS/inference_webui_fast.py index dcc2bcf..3f566ca 100644 --- a/GPT_SoVITS/inference_webui_fast.py +++ b/GPT_SoVITS/inference_webui_fast.py @@ -326,6 +326,8 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app: cut_text.click(to_cut, [text_inp, _how_to_cut], [text_opt]) gr.Markdown(value=i18n("后续将支持转音素、手工修改音素、语音合成分步执行。")) + i18n.translate_blocks(app) + if __name__ == '__main__': app.queue().launch(#concurrency_count=511, max_size=1022 server_name="0.0.0.0", diff --git a/tools/uvr5/webui.py b/tools/uvr5/webui.py index dc6dd02..4fde23c 100644 --- a/tools/uvr5/webui.py +++ b/tools/uvr5/webui.py @@ -199,6 +199,8 @@ with gr.Blocks(title="UVR5 WebUI") as app: [vc_output4], api_name="uvr_convert", ) + + i18n.translate_blocks(app) app.queue().launch(#concurrency_count=511, max_size=1022 server_name="0.0.0.0", inbrowser=True,