mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-01-09 20:07:02 +08:00
Merge 29b6f6834d539c8d89d8e08ad8f6d36c6be69b5d into b7a904a67153170d334fdc0d7fbae220ee21f0e9
This commit is contained in:
commit
c6c9b64c36
@ -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