Update server.py
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user