oItsMineZ commited on
Commit
4f5fedd
Β·
verified Β·
1 Parent(s): e257ab5

Update src/webui.py

Browse files
Files changed (1) hide show
  1. src/webui.py +6 -6
src/webui.py CHANGED
@@ -225,21 +225,21 @@ if __name__ == '__main__':
225
  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')
226
  ref_btn = gr.Button('Refresh Models πŸ”', variant='primary')
227
 
228
- with gr.Column() as yt_link_col:
229
- 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://youtu.be/dQw4w9WgXcQ', value=def_link)
230
- show_file_upload_button = gr.Button('Upload file instead πŸ“€')
231
 
232
- with gr.Column(visible=False) as file_upload_col:
233
  local_file = gr.File(label='Audio file')
234
  song_input_file = gr.UploadButton('Upload πŸ“‚', file_types=['audio'], variant='primary')
235
- show_yt_link_button = gr.Button('Paste YouTube link/Path to local file instead πŸ”—')
236
  song_input_file.upload(process_file_upload, inputs=[song_input_file], outputs=[local_file, song_input])
237
 
238
  with gr.Column():
239
  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)')
240
  pitch_all = gr.Slider(-12, 12, value=0, step=1, label='Overall Pitch Change', info='Changes pitch/key of vocals and instrumentals together. Altering this slightly reduces sound quality. (Semitones)')
241
  show_file_upload_button.click(swap_visibility, outputs=[file_upload_col, yt_link_col, song_input, local_file])
242
- show_yt_link_button.click(swap_visibility, outputs=[yt_link_col, file_upload_col, song_input, local_file])
243
 
244
  with gr.Accordion('Voice conversion options', open=False):
245
  with gr.Row():
 
225
  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')
226
  ref_btn = gr.Button('Refresh Models πŸ”', variant='primary')
227
 
228
+ # with gr.Column(visible=False) as yt_link_col:
229
+ # 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://youtu.be/dQw4w9WgXcQ', value=def_link)
230
+ # show_file_upload_button = gr.Button('Upload file instead πŸ“€')
231
 
232
+ with gr.Column() as file_upload_col:
233
  local_file = gr.File(label='Audio file')
234
  song_input_file = gr.UploadButton('Upload πŸ“‚', file_types=['audio'], variant='primary')
235
+ # show_yt_link_button = gr.Button('Paste YouTube link/Path to local file instead πŸ”—')
236
  song_input_file.upload(process_file_upload, inputs=[song_input_file], outputs=[local_file, song_input])
237
 
238
  with gr.Column():
239
  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)')
240
  pitch_all = gr.Slider(-12, 12, value=0, step=1, label='Overall Pitch Change', info='Changes pitch/key of vocals and instrumentals together. Altering this slightly reduces sound quality. (Semitones)')
241
  show_file_upload_button.click(swap_visibility, outputs=[file_upload_col, yt_link_col, song_input, local_file])
242
+ # show_yt_link_button.click(swap_visibility, outputs=[yt_link_col, file_upload_col, song_input, local_file])
243
 
244
  with gr.Accordion('Voice conversion options', open=False):
245
  with gr.Row():