Fix: roll back #170 and fix bug in api /tools/random_example (#177)

This commit is contained in:
Sora
2023-11-11 20:28:31 +08:00
committed by GitHub
parent 5c37dbd3cf
commit 9483a6c576
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ chrsMap: List[Dict[int, str]] = list()
# 加载模型
models = config.server_config.models
for model in models:
hps_List.append(utils.get_hparams_from_file(model["config_path"]))
hps_List.append(utils.get_hparams_from_file(model["config"]))
# 添加角色字典
chrsMap.append(dict())
for name, cid in hps_List[-1].data.spk2id.items():