From 176417e78efe0383cb4d503be2a37754a56df911 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 11:47:33 +0800 Subject: [PATCH] Format code (#901) Co-authored-by: github-actions[bot] --- app.py | 4 +--- infer-web.py | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index fc68809..9fdd212 100644 --- a/app.py +++ b/app.py @@ -236,9 +236,7 @@ with app: vc_input3 = gr.Audio(label="上传音频(长度小于90秒)") vc_transform0 = gr.Number(label=i18n("变调(整数, 半音数量, 升八度12降八度-12)"), value=0) f0method0 = gr.Radio( - label=i18n( - "选择音高提取算法,输入歌声可用pm提速,harvest低音好但巨慢无比,crepe效果好但吃GPU" - ), + label=i18n("选择音高提取算法,输入歌声可用pm提速,harvest低音好但巨慢无比,crepe效果好但吃GPU"), choices=["pm", "harvest", "crepe", "rmvpe"], value="pm", interactive=True, diff --git a/infer-web.py b/infer-web.py index f36de89..cd89f96 100644 --- a/infer-web.py +++ b/infer-web.py @@ -399,6 +399,7 @@ def uvr(model_name, inp_root, save_root_vocal, paths, save_root_ins, agg, format torch.cuda.empty_cache() yield "\n".join(infos) + def get_index_path_from_model(sid): sel_index_path = "" name = os.path.join("logs", sid.split(".")[0], "") @@ -410,6 +411,7 @@ def get_index_path_from_model(sid): break return sel_index_path + # 一个选项卡全局只能有一个音色 def get_vc(sid, to_return_protect0, to_return_protect1): global n_spk, tgt_sr, net_g, vc, cpt, version