helloWorld199 commited on
Commit
32dc285
1 Parent(s): e530855

Update src/webui.py

Browse files
Files changed (1) hide show
  1. src/webui.py +5 -5
src/webui.py CHANGED
@@ -187,10 +187,10 @@ if __name__ == '__main__':
187
  backup_vocals_input = gr.Text(label='backup_vocals_input')
188
  main_vocals = gr.File(label='Audio file')
189
  backup_vocals = gr.File(label='Backup Vocals')
190
- main_vocals = gr.UploadButton('Upload Main Dereverbered vocals', file_types=['audio'], variant='primary')
191
- main_vocals.upload(process_file_upload, inputs=[song_input_file], outputs=[main_vocals, main_vocals_input])
192
- backup_vocals = gr.UploadButton('Upload backup vocals', file_types=['audio'], variant='primary')
193
- backup_vocals.upload(process_file_upload, inputs=[song_input_file], outputs=[backup_vocals, backup_vocals_input])
194
 
195
  with gr.Column():
196
  pitch = gr.Slider(-3, 3, value=0, step=1, label='Pitch Change (Vocals ONLY)', info='Generally, use 1 for male to female conversions and -1 for vice-versa. (Octaves)')
@@ -233,7 +233,7 @@ if __name__ == '__main__':
233
  ref_btn.click(update_models_list, None, outputs=rvc_model)
234
  is_webui = gr.Number(value=1, visible=False)
235
  generate_btn.click(song_cover_pipeline,
236
- inputs=[song_input, rvc_model, pitch, keep_files, is_webui, main_gain, backup_gain,
237
  inst_gain, index_rate, filter_radius, rms_mix_rate, f0_method, crepe_hop_length,
238
  protect, pitch_all, reverb_rm_size, reverb_wet, reverb_dry, reverb_damping,
239
  output_format],
 
187
  backup_vocals_input = gr.Text(label='backup_vocals_input')
188
  main_vocals = gr.File(label='Audio file')
189
  backup_vocals = gr.File(label='Backup Vocals')
190
+ main_vocals_file = gr.UploadButton('Upload Main Dereverbered vocals', file_types=['audio'], variant='primary')
191
+ main_vocals_file.upload(process_file_upload, inputs=[main_vocals_file], outputs=[main_vocals, main_vocals_input])
192
+ backup_vocals_file = gr.UploadButton('Upload backup vocals', file_types=['audio'], variant='primary')
193
+ backup_vocals_file.upload(process_file_upload, inputs=[backup_vocals_file], outputs=[backup_vocals, backup_vocals_input])
194
 
195
  with gr.Column():
196
  pitch = gr.Slider(-3, 3, value=0, step=1, label='Pitch Change (Vocals ONLY)', info='Generally, use 1 for male to female conversions and -1 for vice-versa. (Octaves)')
 
233
  ref_btn.click(update_models_list, None, outputs=rvc_model)
234
  is_webui = gr.Number(value=1, visible=False)
235
  generate_btn.click(song_cover_pipeline,
236
+ inputs=[main_vocals_input, backup_vocals_input, rvc_model, pitch, keep_files, is_webui, main_gain, backup_gain,
237
  inst_gain, index_rate, filter_radius, rms_mix_rate, f0_method, crepe_hop_length,
238
  protect, pitch_all, reverb_rm_size, reverb_wet, reverb_dry, reverb_damping,
239
  output_format],