Spaces:
Running
Running
kevinwang676
commited on
Commit
•
91ba404
1
Parent(s):
0123586
Update app_multi.py
Browse files- app_multi.py +6 -1
app_multi.py
CHANGED
@@ -691,6 +691,10 @@ with app:
|
|
691 |
ydl_url_input = gr.Textbox(label="音乐视频网址(可直接填写相应的BV号)", value = "https://www.bilibili.com/video/BV...")
|
692 |
start = gr.Number(value=0, label="起始时间 (秒)")
|
693 |
end = gr.Number(value=15, label="结束时间 (秒)")
|
|
|
|
|
|
|
|
|
694 |
ydl_url_submit = gr.Button("提取声音文件吧", variant="primary")
|
695 |
as_audio_submit = gr.Button("去除背景音吧", variant="primary")
|
696 |
with gr.Column():
|
@@ -699,7 +703,8 @@ with app:
|
|
699 |
as_audio_vocals = gr.Audio(label="歌曲人声部分")
|
700 |
as_audio_no_vocals = gr.Audio(label="歌曲伴奏部分", type="filepath")
|
701 |
as_audio_message = gr.Textbox(label="Message", visible=False)
|
702 |
-
|
|
|
703 |
ydl_url_submit.click(fn=youtube_downloader, inputs=[ydl_url_input, start, end], outputs=[ydl_audio_output])
|
704 |
as_audio_submit.click(fn=audio_separated, inputs=[as_audio_input], outputs=[as_audio_vocals, as_audio_no_vocals, as_audio_message], show_progress=True, queue=True)
|
705 |
|
|
|
691 |
ydl_url_input = gr.Textbox(label="音乐视频网址(可直接填写相应的BV号)", value = "https://www.bilibili.com/video/BV...")
|
692 |
start = gr.Number(value=0, label="起始时间 (秒)")
|
693 |
end = gr.Number(value=15, label="结束时间 (秒)")
|
694 |
+
with gr.Accordion('搜索歌曲名上传', open=False):
|
695 |
+
search_name = gr.Dropdown(label="通过歌曲名搜索", info="选一首您喜欢的歌曲吧", choices=["周杰伦晴天","周杰伦兰亭序","周杰伦七里香","周杰伦花海","周杰伦反方向的钟","周杰伦一路向北","周杰伦稻香","周杰伦明明就","周杰伦爱在西元前","孙燕姿逆光","陈奕迅富士山下","许嵩有何不可","薛之谦其实","邓紫棋光年之外","李荣浩年少有为"])
|
696 |
+
vc_search = gr.Button("用歌曲名来搜索吧")
|
697 |
+
|
698 |
ydl_url_submit = gr.Button("提取声音文件吧", variant="primary")
|
699 |
as_audio_submit = gr.Button("去除背景音吧", variant="primary")
|
700 |
with gr.Column():
|
|
|
703 |
as_audio_vocals = gr.Audio(label="歌曲人声部分")
|
704 |
as_audio_no_vocals = gr.Audio(label="歌曲伴奏部分", type="filepath")
|
705 |
as_audio_message = gr.Textbox(label="Message", visible=False)
|
706 |
+
|
707 |
+
vc_search.click(auto_search, [search_name], [ydl_audio_output])
|
708 |
ydl_url_submit.click(fn=youtube_downloader, inputs=[ydl_url_input, start, end], outputs=[ydl_audio_output])
|
709 |
as_audio_submit.click(fn=audio_separated, inputs=[as_audio_input], outputs=[as_audio_vocals, as_audio_no_vocals, as_audio_message], show_progress=True, queue=True)
|
710 |
|