helloWorld199 commited on
Commit
f60f795
·
verified ·
1 Parent(s): dc3006f

Update src/webui.py

Browse files
Files changed (1) hide show
  1. src/webui.py +2 -6
src/webui.py CHANGED
@@ -178,9 +178,6 @@ if __name__ == '__main__':
178
 
179
  with gr.Accordion('Main Options'):
180
  with gr.Row():
181
- with gr.Column():
182
- rvc_model = gr.Dropdown(voice_models, label='Voice Models', info='Models folder "AICoverGen --> rvc_models". After new models are added into this folder, click the refresh button')
183
- ref_btn = gr.Button('Refresh Models 🔁', variant='primary')
184
 
185
  with gr.Column() as yt_link_col:
186
  song_input = gr.Text(label='Song input', info='Link to a song on YouTube or full path to a local file. For file upload, click the button below. Example: https://www.youtube.com/watch?v=M-mtdN6R3bQ')
@@ -228,17 +225,16 @@ if __name__ == '__main__':
228
  output_format = gr.Dropdown(['mp3', 'wav'], value='mp3', label='Output file type', info='mp3: small file size, decent quality. wav: Large file size, best quality')
229
 
230
  with gr.Row():
231
- clear_btn = gr.ClearButton(value='Clear', components=[song_input, rvc_model, keep_files, local_file])
232
  generate_btn = gr.Button("Generate", variant='primary')
233
  vocals = gr.Audio(label='full vocals', show_share_button=False)
234
  instrumentals = gr.Audio(label='instrumentals', show_share_button=False)
235
  backup_vocals = gr.Audio(label='backup_vocals', show_share_button=False)
236
  main_dereverbered_vocals = gr.Audio(label='main_dereverbered_vocals', show_share_button=False)
237
 
238
- ref_btn.click(update_models_list, None, outputs=rvc_model)
239
  is_webui = gr.Number(value=1, visible=False)
240
  generate_btn.click(song_cover_pipeline,
241
- inputs=[song_input, rvc_model, pitch, keep_files, is_webui, main_gain, backup_gain,
242
  inst_gain, index_rate, filter_radius, rms_mix_rate, f0_method, crepe_hop_length,
243
  protect, pitch_all, reverb_rm_size, reverb_wet, reverb_dry, reverb_damping,
244
  output_format],
 
178
 
179
  with gr.Accordion('Main Options'):
180
  with gr.Row():
 
 
 
181
 
182
  with gr.Column() as yt_link_col:
183
  song_input = gr.Text(label='Song input', info='Link to a song on YouTube or full path to a local file. For file upload, click the button below. Example: https://www.youtube.com/watch?v=M-mtdN6R3bQ')
 
225
  output_format = gr.Dropdown(['mp3', 'wav'], value='mp3', label='Output file type', info='mp3: small file size, decent quality. wav: Large file size, best quality')
226
 
227
  with gr.Row():
228
+ clear_btn = gr.ClearButton(value='Clear', components=[song_input, keep_files, local_file])
229
  generate_btn = gr.Button("Generate", variant='primary')
230
  vocals = gr.Audio(label='full vocals', show_share_button=False)
231
  instrumentals = gr.Audio(label='instrumentals', show_share_button=False)
232
  backup_vocals = gr.Audio(label='backup_vocals', show_share_button=False)
233
  main_dereverbered_vocals = gr.Audio(label='main_dereverbered_vocals', show_share_button=False)
234
 
 
235
  is_webui = gr.Number(value=1, visible=False)
236
  generate_btn.click(song_cover_pipeline,
237
+ inputs=[song_input, pitch, keep_files, is_webui, main_gain, backup_gain,
238
  inst_gain, index_rate, filter_radius, rms_mix_rate, f0_method, crepe_hop_length,
239
  protect, pitch_all, reverb_rm_size, reverb_wet, reverb_dry, reverb_damping,
240
  output_format],