mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-05-20 21:19:17 +08:00
修复首次打开不加载sovits模型
修复首次打开不加载sovits模型
This commit is contained in:
parent
c2b3298bed
commit
1b25e1097a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user