Fix: normalize argument error slice

This commit is contained in:
Shouta Yoshikai
2024-01-01 04:02:28 +09:00
parent d0df0f3526
commit 7c5161c3f3
2 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ import json
def set_style_config(json_path, output_path):
with open(json_path, "r") as f:
with open(json_path, "r", encoding="utf-8") as f:
json_dict = json.load(f)
json_dict["data"]["num_styles"] = 1
json_dict["data"]["style2id"] = {DEFAULT_STYLE: 0}