diff --git a/server.py b/server.py index d6eb57d..192a678 100644 --- a/server.py +++ b/server.py @@ -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"])) + hps_List.append(utils.get_hparams_from_file(model["config_path"])) # 添加角色字典 chrsMap.append(dict()) for name, cid in hps_List[-1].data.spk2id.items(): diff --git a/server_fastapi.py b/server_fastapi.py index 1befc5d..ae16869 100644 --- a/server_fastapi.py +++ b/server_fastapi.py @@ -163,7 +163,7 @@ if __name__ == "__main__": models_info = config.server_config.models for model_info in models_info: loaded_models.init_model( - config_path=model_info["config"], + config_path=model_info["config_path"], model_path=model_info["model"], device=model_info["device"], language=model_info["language"],