Update app.py
Browse files
app.py
CHANGED
@@ -823,7 +823,8 @@ with gr.Blocks(title="NEX RVC WebUI", theme="nevreal/blues") as app:
|
|
823 |
refresh_button = gr.Button(
|
824 |
i18n("刷新音色列表和索引路径"), variant="primary"
|
825 |
)
|
826 |
-
|
|
|
827 |
spk_item = gr.Slider(
|
828 |
minimum=0,
|
829 |
maximum=2333,
|
@@ -831,23 +832,24 @@ with gr.Blocks(title="NEX RVC WebUI", theme="nevreal/blues") as app:
|
|
831 |
label=i18n("请选择说话人id"),
|
832 |
value=0,
|
833 |
visible=False,
|
834 |
-
interactive=
|
835 |
)
|
836 |
with gr.Column():
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
|
|
851 |
clean_button.click(
|
852 |
fn=clean, inputs=[], outputs=[sid0], api_name="infer_clean"
|
853 |
)
|
@@ -1369,4 +1371,4 @@ with gr.Blocks(title="NEX RVC WebUI", theme="nevreal/blues") as app:
|
|
1369 |
|
1370 |
|
1371 |
|
1372 |
-
app.launch()
|
|
|
823 |
refresh_button = gr.Button(
|
824 |
i18n("刷新音色列表和索引路径"), variant="primary"
|
825 |
)
|
826 |
+
with gr.Row():
|
827 |
+
clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
|
828 |
spk_item = gr.Slider(
|
829 |
minimum=0,
|
830 |
maximum=2333,
|
|
|
832 |
label=i18n("请选择说话人id"),
|
833 |
value=0,
|
834 |
visible=False,
|
835 |
+
interactive=False,
|
836 |
)
|
837 |
with gr.Column():
|
838 |
+
with gr.Row():
|
839 |
+
vc_transform0 = gr.Number(
|
840 |
+
label=i18n("变调(整数, 半音数量, 升八度12降八度-12)"),
|
841 |
+
value=0,
|
842 |
+
)
|
843 |
+
f0methodt = gr.Radio(
|
844 |
+
label=i18n(
|
845 |
+
"选择音高提取算法,输入歌声可用pm提速,harvest低音好但巨慢无比,crepe效果好但吃GPU,rmvpe效果最好且微吃GPU"
|
846 |
+
),
|
847 |
+
choices=(
|
848 |
+
["crepe", "rmvpe"]
|
849 |
+
),
|
850 |
+
value="rmvpe",
|
851 |
+
interactive=True,
|
852 |
+
)
|
853 |
clean_button.click(
|
854 |
fn=clean, inputs=[], outputs=[sid0], api_name="infer_clean"
|
855 |
)
|
|
|
1371 |
|
1372 |
|
1373 |
|
1374 |
+
app.launch(debug=True)
|