kevinwang676 commited on
Commit
c909f8f
1 Parent(s): 49683ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -368,10 +368,10 @@ if __name__ == '__main__':
368
  )
369
  with gr.Row():
370
  with gr.Column():
371
- vc_audio_mode = gr.Dropdown(label="Input voice", choices=audio_mode, allow_custom_value=False, value="Upload audio")
372
  # Input and Upload
373
  vc_input = gr.Textbox(label="Input audio path", visible=False)
374
- vc_upload = gr.Audio(label="Upload audio file", visible=True, interactive=True)
375
  # Youtube
376
  vc_download_audio = gr.Dropdown(label="Provider", choices=["Youtube"], allow_custom_value=False, visible=False, value="Youtube", info="Select provider (Default: Youtube)")
377
  vc_link = gr.Textbox(label="Youtube URL", visible=False, info="Example: https://www.youtube.com/watch?v=Nc0sB1Bmf-A", placeholder="https://www.youtube.com/watch?v=...")
@@ -399,6 +399,7 @@ if __name__ == '__main__':
399
  info="(Default: 0.6)",
400
  value=0.6,
401
  interactive=True,
 
402
  )
403
  filter_radius0 = gr.Slider(
404
  minimum=0,
@@ -408,6 +409,7 @@ if __name__ == '__main__':
408
  value=3,
409
  step=1,
410
  interactive=True,
 
411
  )
412
  resample_sr0 = gr.Slider(
413
  minimum=0,
@@ -417,6 +419,7 @@ if __name__ == '__main__':
417
  value=0,
418
  step=1,
419
  interactive=True,
 
420
  )
421
  rms_mix_rate0 = gr.Slider(
422
  minimum=0,
@@ -425,6 +428,7 @@ if __name__ == '__main__':
425
  info="Use the volume envelope of the input to replace or mix with the volume envelope of the output. The closer the ratio is to 1, the more the output envelope is used",
426
  value=1,
427
  interactive=True,
 
428
  )
429
  protect0 = gr.Slider(
430
  minimum=0,
@@ -438,8 +442,8 @@ if __name__ == '__main__':
438
 
439
  with gr.Column():
440
  vc_log = gr.Textbox(label="Output Information", interactive=False)
441
- vc_output = gr.Audio(label="Output Audio", interactive=False)
442
- vc_convert = gr.Button("Convert", variant="primary")
443
  vc_volume = gr.Slider(
444
  minimum=0,
445
  maximum=10,
 
368
  )
369
  with gr.Row():
370
  with gr.Column():
371
+ vc_audio_mode = gr.Dropdown(label="Input voice", choices=audio_mode, allow_custom_value=False, value="Upload audio", visible=False)
372
  # Input and Upload
373
  vc_input = gr.Textbox(label="Input audio path", visible=False)
374
+ vc_upload = gr.Audio(label="请上传一段无伴奏的音频", visible=True, interactive=True)
375
  # Youtube
376
  vc_download_audio = gr.Dropdown(label="Provider", choices=["Youtube"], allow_custom_value=False, visible=False, value="Youtube", info="Select provider (Default: Youtube)")
377
  vc_link = gr.Textbox(label="Youtube URL", visible=False, info="Example: https://www.youtube.com/watch?v=Nc0sB1Bmf-A", placeholder="https://www.youtube.com/watch?v=...")
 
399
  info="(Default: 0.6)",
400
  value=0.6,
401
  interactive=True,
402
+ visible=False,
403
  )
404
  filter_radius0 = gr.Slider(
405
  minimum=0,
 
409
  value=3,
410
  step=1,
411
  interactive=True,
412
+ visible=False,
413
  )
414
  resample_sr0 = gr.Slider(
415
  minimum=0,
 
419
  value=0,
420
  step=1,
421
  interactive=True,
422
+ visible=False,
423
  )
424
  rms_mix_rate0 = gr.Slider(
425
  minimum=0,
 
428
  info="Use the volume envelope of the input to replace or mix with the volume envelope of the output. The closer the ratio is to 1, the more the output envelope is used",
429
  value=1,
430
  interactive=True,
431
+ visible=False,
432
  )
433
  protect0 = gr.Slider(
434
  minimum=0,
 
442
 
443
  with gr.Column():
444
  vc_log = gr.Textbox(label="Output Information", interactive=False)
445
+ vc_output = gr.Audio(label="AI歌手(无伴奏)", interactive=False)
446
+ vc_convert = gr.Button("开始AI转换吧", variant="primary")
447
  vc_volume = gr.Slider(
448
  minimum=0,
449
  maximum=10,