Update server.py

This commit is contained in:
Stardust·减
2023-11-06 00:14:11 +08:00
committed by GitHub
parent 6d1fa7783c
commit a3f981d5c7

View File

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