Blane187 commited on
Commit
ccf0c76
·
verified ·
1 Parent(s): af88460

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,10 +34,10 @@ with gr.Blocks(title="RVC UI") as app:
34
  rms_mix_rate0 = 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=0.25,interactive=True)
35
  protect0 = gr.Slider(minimum=0,maximum=0.5,label="Protect voiceless consonants and breath sounds to prevent artifacts such as tearing in electronic music. Set to 0.5 to disable. Decrease the value to increase protection, but it may reduce indexing accuracy",value=0.33,step=0.01,interactive=True)
36
  filter_radius0 = gr.Slider(minimum=0,maximum=7,label=("If >=3: apply median filtering to the harvested pitch results. The value represents the filter radius and can reduce breathiness."),value=3,step=1,interactive=True)
37
- f0_file = gr.File(label="F0 curve file (optional). One pitch per line. Replaces the default F0 and pitch modulation",visible=False,)
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)"),type="filepath")
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(f"<center>Batch conversion\n. 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').")
 
34
  rms_mix_rate0 = 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=0.25,interactive=True)
35
  protect0 = gr.Slider(minimum=0,maximum=0.5,label="Protect voiceless consonants and breath sounds to prevent artifacts such as tearing in electronic music. Set to 0.5 to disable. Decrease the value to increase protection, but it may reduce indexing accuracy",value=0.33,step=0.01,interactive=True)
36
  filter_radius0 = gr.Slider(minimum=0,maximum=7,label=("If >=3: apply median filtering to the harvested pitch results. The value represents the filter radius and can reduce breathiness."),value=3,step=1,interactive=True)
37
+ f0_file = gr.File(label="F0 curve file (optional). One pitch per line. Replaces the default F0 and pitch modulation",visible=False)
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)",type="filepath")
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(f"<center>Batch conversion\n. 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').")