Fix: ensure encoding utf-8

This commit is contained in:
litagin02
2024-03-11 09:27:36 +09:00
parent 03d4b4c97e
commit 42ee7d7608
2 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ from style_bert_vits2.logging import logger
def download_bert_models():
with open("bert/bert_models.json", "r") as fp:
with open("bert/bert_models.json", "r", encoding="utf-8") as fp:
models = json.load(fp)
for k, v in models.items():
local_path = Path("bert").joinpath(k)