mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-07 15:33:29 +08:00
add
This commit is contained in:
parent
38322dd4c7
commit
ecc25539f7
@ -305,6 +305,9 @@ def change_sovits_weights(sovits_path,prompt_language=None,text_language=None, c
|
||||
data["SoVITS"][version]=sovits_path
|
||||
with open("./weight.json","w")as f:f.write(json.dumps(data))
|
||||
|
||||
sovits_path = "GPT_SoVITS/pretrained_models/s2G2333k.pth"
|
||||
try:next(change_sovits_weights(sovits_path))
|
||||
except:pass
|
||||
|
||||
def change_gpt_weights(gpt_path):
|
||||
print(f"the gpt model is updated! and the path is {gpt_path}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user