Blane187 commited on
Commit
7798cf9
·
verified ·
1 Parent(s): 16eb9a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -38,12 +38,7 @@ with gr.Blocks(title="RVC UI") as app:
38
  but0 = gr.Button("Convert", variant="primary")
39
  vc_output1 = gr.Textbox(label="Output information")
40
  vc_output2 = gr.Audio(label="Export audio (click on the three dots in the lower right corner to download)")
41
- refresh_button.click(
42
- fn=change_choices,
43
- inputs=[],
44
- outputs=[models, file_index2],
45
- api_name="infer_refresh",
46
- )
47
  with gr.TabItem("Batch inference"):
48
  gr.Markdown("Batch conversion. Enter the folder containing the audio files to be converted or upload multiple audio files. The converted audio will be output in the specified folder (default: 'opt').")
49
  vc_transform1 = gr.Number(label="Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12)", value=0)
@@ -52,7 +47,7 @@ with gr.Blocks(title="RVC UI") as app:
52
  opt_input = gr.Textbox(label="Specify output folder", value="opt")
53
  file_index4 = gr.Dropdown(label="Auto-detect index path and select from the dropdown", choices=sorted(index_paths), interactive=True)
54
  file_index3 = gr.File(label="Path to the feature index file. Leave blank to use the selected result from the dropdown")
55
- refresh_button.click(fn=lambda: change_choices()[1],inputs=[],outputs=file_index4,api_name="infer_refresh_batch")
56
  f0method1 = gr.Radio(label="Select the pitch extraction algorithm ('pm': faster extraction but lower-quality speech; 'harvest': better bass but extremely slow; 'crepe': better quality but GPU intensive), 'rmvpe': best quality, and little GPU requirement",choices=(["pm", "harvest", "crepe", "rmvpe", "fcpe"]),value="rmvpe",interactive=True)
57
  resample_sr1 = gr.Slider(minimum=0,maximum=48000,label="Resample the output audio in post-processing to the final sample rate. Set to 0 for no resampling",value=0,step=1,interactive=True)
58
  rms_mix_rate1 = gr.Slider(minimum=0,maximum=1,label="Adjust the volume envelope scaling. Closer to 0, the more it mimicks the volume of the original vocals. Can help mask noise and make volume sound more natural when set relatively low. Closer to 1 will be more of a consistently loud volume",value=1,interactive=True)
 
38
  but0 = gr.Button("Convert", variant="primary")
39
  vc_output1 = gr.Textbox(label="Output information")
40
  vc_output2 = gr.Audio(label="Export audio (click on the three dots in the lower right corner to download)")
41
+ #refresh_button.click(fn=change_choices,inputs=[],outputs=[models, file_index2],api_name="infer_refresh")
 
 
 
 
 
42
  with gr.TabItem("Batch inference"):
43
  gr.Markdown("Batch conversion. Enter the folder containing the audio files to be converted or upload multiple audio files. The converted audio will be output in the specified folder (default: 'opt').")
44
  vc_transform1 = gr.Number(label="Transpose (integer, number of semitones, raise by an octave: 12, lower by an octave: -12)", value=0)
 
47
  opt_input = gr.Textbox(label="Specify output folder", value="opt")
48
  file_index4 = gr.Dropdown(label="Auto-detect index path and select from the dropdown", choices=sorted(index_paths), interactive=True)
49
  file_index3 = gr.File(label="Path to the feature index file. Leave blank to use the selected result from the dropdown")
50
+ #refresh_button.click(fn=lambda: change_choices()[1],inputs=[],outputs=file_index4,api_name="infer_refresh_batch")
51
  f0method1 = gr.Radio(label="Select the pitch extraction algorithm ('pm': faster extraction but lower-quality speech; 'harvest': better bass but extremely slow; 'crepe': better quality but GPU intensive), 'rmvpe': best quality, and little GPU requirement",choices=(["pm", "harvest", "crepe", "rmvpe", "fcpe"]),value="rmvpe",interactive=True)
52
  resample_sr1 = gr.Slider(minimum=0,maximum=48000,label="Resample the output audio in post-processing to the final sample rate. Set to 0 for no resampling",value=0,step=1,interactive=True)
53
  rms_mix_rate1 = gr.Slider(minimum=0,maximum=1,label="Adjust the volume envelope scaling. Closer to 0, the more it mimicks the volume of the original vocals. Can help mask noise and make volume sound more natural when set relatively low. Closer to 1 will be more of a consistently loud volume",value=1,interactive=True)