kevinwang676 commited on
Commit
36a070b
1 Parent(s): 879f13a

Update app_multi.py

Browse files
Files changed (1) hide show
  1. app_multi.py +2 -1
app_multi.py CHANGED
@@ -7,6 +7,7 @@ import librosa
7
  import os
8
  import time
9
  import random
 
10
 
11
  from search import get_youtube, download_random
12
  import soundfile
@@ -709,7 +710,7 @@ with app:
709
  with gr.Row():
710
  start = gr.Number(value=0, label="起始时间 (秒)")
711
  end = gr.Number(value=15, label="结束时间 (秒)")
712
- check_full = gr.Checkbox(label="是否上传整首歌曲", value=True)
713
  with gr.Accordion('搜索歌曲名上传', open=False):
714
  search_name = gr.Dropdown(label="通过歌曲名搜索", info="选一首您喜欢的歌曲吧", choices=["周杰伦晴天","周杰伦兰亭序","周杰伦七里香","周杰伦花海","周杰伦反方向的钟","周杰伦一路向北","周杰伦稻香","周杰伦明明就","周杰伦爱在西元前","孙燕姿逆光","陈奕迅富士山下","许嵩有何不可","薛之谦其实","邓紫棋光年之外","李荣浩年少有为"])
715
  vc_search = gr.Button("用歌曲名来搜索吧")
 
7
  import os
8
  import time
9
  import random
10
+ import yt_dlp
11
 
12
  from search import get_youtube, download_random
13
  import soundfile
 
710
  with gr.Row():
711
  start = gr.Number(value=0, label="起始时间 (秒)")
712
  end = gr.Number(value=15, label="结束时间 (秒)")
713
+ check_full = gr.Checkbox(label="是否上传整首歌曲", info="若勾选则不需要填写起止时间", value=True)
714
  with gr.Accordion('搜索歌曲名上传', open=False):
715
  search_name = gr.Dropdown(label="通过歌曲名搜索", info="选一首您喜欢的歌曲吧", choices=["周杰伦晴天","周杰伦兰亭序","周杰伦七里香","周杰伦花海","周杰伦反方向的钟","周杰伦一路向北","周杰伦稻香","周杰伦明明就","周杰伦爱在西元前","孙燕姿逆光","陈奕迅富士山下","许嵩有何不可","薛之谦其实","邓紫棋光年之外","李荣浩年少有为"])
716
  vc_search = gr.Button("用歌曲名来搜索吧")