mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-06 22:50:00 +08:00
Add files via upload
This commit is contained in:
parent
a70e1ad30c
commit
29b6f6834d
@ -187,7 +187,7 @@ class TTS_Config:
|
|||||||
else:
|
else:
|
||||||
print(i18n("路径不存在,使用默认配置"))
|
print(i18n("路径不存在,使用默认配置"))
|
||||||
self.save_configs(configs_path)
|
self.save_configs(configs_path)
|
||||||
with open(configs_path, 'r') as f:
|
with open(configs_path, "r", encoding="utf-8") as f:
|
||||||
configs = yaml.load(f, Loader=yaml.FullLoader)
|
configs = yaml.load(f, Loader=yaml.FullLoader)
|
||||||
|
|
||||||
return configs
|
return configs
|
||||||
@ -199,7 +199,7 @@ class TTS_Config:
|
|||||||
|
|
||||||
if configs_path is None:
|
if configs_path is None:
|
||||||
configs_path = self.configs_path
|
configs_path = self.configs_path
|
||||||
with open(configs_path, 'w') as f:
|
with open(configs_path, "w", encoding="utf-8") as f:
|
||||||
yaml.dump(configs, f)
|
yaml.dump(configs, f)
|
||||||
|
|
||||||
def update_configs(self):
|
def update_configs(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user