assure 'configs/config.json' is same (#205)
* Create all_process.py * Create asr_transcript.py * Update config.py * Create extract_list.py * Create clean_list.py * Create custom.css * Create compress_model.py * Update all_process.py * Update resample.py * Update resample.py * configs/config.json copy utils * mirror: openi + token bert models optimize * text/__init__.py platform compatibility compress_model.py output * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * default_config.yml fix 'config_path' all_process.py fix 'config_path' * default_config.yml fix 'config_path' all_process.py fix 'config_path' * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -471,6 +471,9 @@ def modify_emo_gen(emo_cfg, emo_nps, emo_device):
|
||||
yml["emo_gen"]["device"] = emo_device
|
||||
write_yaml_data_in_fact(yml)
|
||||
comp_emo_cfg = os.path.join(os.path.abspath(data_path), emo_cfg).replace("\\", "/")
|
||||
if not os.path.exists(comp_emo_cfg):
|
||||
os.makedirs(os.path.dirname(comp_emo_cfg), exist_ok=True)
|
||||
shutil.copy(default_config_path, os.path.dirname(comp_emo_cfg))
|
||||
msg = f"修改emo配置参数: [配置路径:{comp_emo_cfg}, 处理数:{emo_nps}, 设备:{emo_device}]"
|
||||
logger.info(msg)
|
||||
return gr.Textbox(value=msg), gr.Code(value=load_yaml_data_in_raw())
|
||||
|
||||
Reference in New Issue
Block a user