nevreal commited on
Commit
85b43a8
·
verified ·
1 Parent(s): 88b7a66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -17
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
- clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
 
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=True,
835
  )
836
  with gr.Column():
837
- vc_transform0 = gr.Number(
838
- label=i18n("变调(整数, 半音数量, 升八度12降八度-12)"),
839
- value=0,
840
- )
841
- f0methodt = gr.Radio(
842
- label=i18n(
843
- "选择音高提取算法,输入歌声可用pm提速,harvest低音好但巨慢无比,crepe效果好但吃GPU,rmvpe效果最好且微吃GPU"
844
- ),
845
- choices=(
846
- ["pm", "harvest", "crepe", "rmvpe"]
847
- ),
848
- value="rmvpe",
849
- interactive=True,
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)