kevinwang676 commited on
Commit
5d1e1a3
1 Parent(s): 3ad4dbd

Update app_multi.py

Browse files
Files changed (1) hide show
  1. app_multi.py +20 -17
app_multi.py CHANGED
@@ -622,7 +622,7 @@ with app:
622
  ydl_audio_output = gr.Audio(label="Audio from Bilibili")
623
  as_audio_input = ydl_audio_output
624
  as_audio_vocals = gr.Audio(label="歌曲人声部分")
625
- as_audio_no_vocals = gr.Audio(label="Music only", type="filepath", visible=False)
626
  as_audio_message = gr.Textbox(label="Message", visible=False)
627
 
628
  ydl_url_submit.click(fn=youtube_downloader, inputs=[ydl_url_input, start, end], outputs=[ydl_audio_output])
@@ -654,19 +654,7 @@ with app:
654
  )
655
 
656
  tts_convert_btn = gr.Button('进行AI变声吧', variant='primary')
657
-
658
- with gr.Tab("📺 - 音乐视频"):
659
- with gr.Row():
660
- with gr.Column():
661
- inp1 = gr.Textbox(label="为视频配上精彩的文案吧(选填;英文)")
662
- inp2 = new_song
663
- inp3 = gr.Image(source='upload', type='filepath', label="上传一张背景图片吧")
664
- btn = gr.Button("生成您的专属音乐视频吧", variant="primary")
665
-
666
- with gr.Column():
667
- out1 = gr.Video(label='您的专属音乐视频')
668
- btn.click(fn=infer, inputs=[inp1, inp2, inp3], outputs=[out1])
669
-
670
  pitch_adjust = gr.Slider(
671
  label='Pitch',
672
  minimum=-24,
@@ -687,21 +675,25 @@ with app:
687
  minimum=0,
688
  maximum=1,
689
  step=0.1,
690
- value=0.6
 
691
  )
692
  filter_radius = gr.Slider(
693
  label='Filter radius',
694
  minimum=0,
695
  maximum=7,
696
  step=1,
697
- value=3
 
698
  )
699
  rms_mix_rate = gr.Slider(
700
  label='Volume envelope mix rate',
701
  minimum=0,
702
  maximum=1,
703
  step=0.1,
704
- value=1
 
 
705
  )
706
  resample_rate = gr.Dropdown(
707
  [
@@ -739,6 +731,17 @@ with app:
739
 
740
  output_audio = gr.Audio(label='AI歌手(无伴奏)', type="filepath")
741
  output_msg = gr.Textbox(label='Output message')
 
 
 
 
 
 
 
 
 
 
 
742
 
743
  multi_examples = multi_cfg.get('examples')
744
  if (
 
622
  ydl_audio_output = gr.Audio(label="Audio from Bilibili")
623
  as_audio_input = ydl_audio_output
624
  as_audio_vocals = gr.Audio(label="歌曲人声部分")
625
+ as_audio_no_vocals = gr.Audio(label="歌曲伴奏部分", type="filepath")
626
  as_audio_message = gr.Textbox(label="Message", visible=False)
627
 
628
  ydl_url_submit.click(fn=youtube_downloader, inputs=[ydl_url_input, start, end], outputs=[ydl_audio_output])
 
654
  )
655
 
656
  tts_convert_btn = gr.Button('进行AI变声吧', variant='primary')
657
+
 
 
 
 
 
 
 
 
 
 
 
 
658
  pitch_adjust = gr.Slider(
659
  label='Pitch',
660
  minimum=-24,
 
675
  minimum=0,
676
  maximum=1,
677
  step=0.1,
678
+ value=0.6,
679
+ visible=False
680
  )
681
  filter_radius = gr.Slider(
682
  label='Filter radius',
683
  minimum=0,
684
  maximum=7,
685
  step=1,
686
+ value=3,
687
+ visible=False
688
  )
689
  rms_mix_rate = gr.Slider(
690
  label='Volume envelope mix rate',
691
  minimum=0,
692
  maximum=1,
693
  step=0.1,
694
+ value=1,
695
+ visible=False
696
+
697
  )
698
  resample_rate = gr.Dropdown(
699
  [
 
731
 
732
  output_audio = gr.Audio(label='AI歌手(无伴奏)', type="filepath")
733
  output_msg = gr.Textbox(label='Output message')
734
+ with gr.Tab("📺 - 音乐视频"):
735
+ with gr.Row():
736
+ with gr.Column():
737
+ inp1 = gr.Textbox(label="为视频配上精彩的文案吧(选填)")
738
+ inp2 = new_song
739
+ inp3 = gr.Image(source='upload', type='filepath', label="上传一张背景图片吧")
740
+ btn = gr.Button("生成您的专属音乐视频吧", variant="primary")
741
+
742
+ with gr.Column():
743
+ out1 = gr.Video(label='您的专属音乐视频')
744
+ btn.click(fn=infer, inputs=[inp1, inp2, inp3], outputs=[out1])
745
 
746
  multi_examples = multi_cfg.get('examples')
747
  if (