Spaces:
Runtime error
Runtime error
Commit ·
65cc05b
1
Parent(s): 9a78c4b
Update app_multi.py
Browse files- app_multi.py +4 -5
app_multi.py
CHANGED
|
@@ -652,7 +652,7 @@ with app:
|
|
| 652 |
btn_text = gr.Button("一键开启真实拟声吧", variant="primary")
|
| 653 |
|
| 654 |
with gr.Column():
|
| 655 |
-
input_audio = gr.Audio(
|
| 656 |
btn_text.click(tts, [inp_text, model, voice, api_key], input_audio)
|
| 657 |
|
| 658 |
with gr.Tab("🤗 - B站视频提取声音"):
|
|
@@ -666,17 +666,16 @@ with app:
|
|
| 666 |
with gr.Column():
|
| 667 |
ydl_audio_output = gr.Audio(label="Audio from Bilibili")
|
| 668 |
as_audio_input = ydl_audio_output
|
| 669 |
-
|
| 670 |
as_audio_no_vocals = gr.Audio(label="Music only", type="filepath", visible=False)
|
| 671 |
as_audio_message = gr.Textbox(label="Message", visible=False)
|
| 672 |
|
| 673 |
ydl_url_submit.click(fn=youtube_downloader, inputs=[ydl_url_input, start, end], outputs=[ydl_audio_output])
|
| 674 |
-
as_audio_submit.click(fn=audio_separated, inputs=[as_audio_input], outputs=[
|
| 675 |
|
| 676 |
with gr.Row():
|
| 677 |
with gr.Column():
|
| 678 |
with gr.Tab('🎶 - 歌声转换'):
|
| 679 |
-
input_audio = as_audio_vocals
|
| 680 |
vc_convert_btn = gr.Button('进行歌声转换吧!', variant='primary')
|
| 681 |
full_song = gr.Button("加入歌曲伴奏吧!", variant="primary")
|
| 682 |
new_song = gr.Audio(label="AI歌手+伴奏", type="filepath")
|
|
@@ -865,4 +864,4 @@ app.queue(
|
|
| 865 |
concurrency_count=1,
|
| 866 |
max_size=20,
|
| 867 |
api_open=args.api
|
| 868 |
-
).launch(show_error=True)
|
|
|
|
| 652 |
btn_text = gr.Button("一键开启真实拟声吧", variant="primary")
|
| 653 |
|
| 654 |
with gr.Column():
|
| 655 |
+
input_audio = gr.Audio(label="OpenAI TTS真实拟声", interactive=False)
|
| 656 |
btn_text.click(tts, [inp_text, model, voice, api_key], input_audio)
|
| 657 |
|
| 658 |
with gr.Tab("🤗 - B站视频提取声音"):
|
|
|
|
| 666 |
with gr.Column():
|
| 667 |
ydl_audio_output = gr.Audio(label="Audio from Bilibili")
|
| 668 |
as_audio_input = ydl_audio_output
|
| 669 |
+
input_audio_song = gr.Audio(label="歌曲人声部分")
|
| 670 |
as_audio_no_vocals = gr.Audio(label="Music only", type="filepath", visible=False)
|
| 671 |
as_audio_message = gr.Textbox(label="Message", visible=False)
|
| 672 |
|
| 673 |
ydl_url_submit.click(fn=youtube_downloader, inputs=[ydl_url_input, start, end], outputs=[ydl_audio_output])
|
| 674 |
+
as_audio_submit.click(fn=audio_separated, inputs=[as_audio_input], outputs=[input_audio_song, as_audio_no_vocals, as_audio_message], show_progress=True, queue=True)
|
| 675 |
|
| 676 |
with gr.Row():
|
| 677 |
with gr.Column():
|
| 678 |
with gr.Tab('🎶 - 歌声转换'):
|
|
|
|
| 679 |
vc_convert_btn = gr.Button('进行歌声转换吧!', variant='primary')
|
| 680 |
full_song = gr.Button("加入歌曲伴奏吧!", variant="primary")
|
| 681 |
new_song = gr.Audio(label="AI歌手+伴奏", type="filepath")
|
|
|
|
| 864 |
concurrency_count=1,
|
| 865 |
max_size=20,
|
| 866 |
api_open=args.api
|
| 867 |
+
).launch(show_error=True, share=True)
|