From 1b25e1097a54699b92885989fb921d5ebc03b319 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Thu, 13 Feb 2025 01:11:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E6=AC=A1=E6=89=93?= =?UTF-8?q?=E5=BC=80=E4=B8=8D=E5=8A=A0=E8=BD=BDsovits=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复首次打开不加载sovits模型 --- GPT_SoVITS/inference_webui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPT_SoVITS/inference_webui.py b/GPT_SoVITS/inference_webui.py index 11fb614..01f5723 100644 --- a/GPT_SoVITS/inference_webui.py +++ b/GPT_SoVITS/inference_webui.py @@ -285,7 +285,8 @@ def change_sovits_weights(sovits_path,prompt_language=None,text_language=None): with open("./weight.json","w")as f:f.write(json.dumps(data)) -change_sovits_weights(sovits_path) +try:next(change_sovits_weights(sovits_path)) +except:pass def change_gpt_weights(gpt_path): global hz, max_sec, t2s_model, config