修复首次打开不加载sovits模型

修复首次打开不加载sovits模型
This commit is contained in:
RVC-Boss 2025-02-13 01:11:22 +08:00 committed by GitHub
parent c2b3298bed
commit 1b25e1097a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)) 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): def change_gpt_weights(gpt_path):
global hz, max_sec, t2s_model, config global hz, max_sec, t2s_model, config