Spaces:
Runtime error
Runtime error
Commit
·
c7dbbf3
1
Parent(s):
eb9259d
Update app_multi.py
Browse files- app_multi.py +14 -13
app_multi.py
CHANGED
|
@@ -604,11 +604,11 @@ async def _example_edge_tts(
|
|
| 604 |
|
| 605 |
|
| 606 |
with app:
|
| 607 |
-
gr.
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
)
|
| 612 |
|
| 613 |
with gr.Tab("🤗 - B站视频提取声音"):
|
| 614 |
with gr.Row():
|
|
@@ -621,8 +621,8 @@ with app:
|
|
| 621 |
with gr.Column():
|
| 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")
|
| 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])
|
|
@@ -630,15 +630,15 @@ with app:
|
|
| 630 |
|
| 631 |
with gr.Row():
|
| 632 |
with gr.Column():
|
| 633 |
-
with gr.Tab('
|
| 634 |
input_audio = as_audio_vocals
|
| 635 |
vc_convert_btn = gr.Button('进行歌声转换吧!', variant='primary')
|
| 636 |
full_song = gr.Button("加入歌曲伴奏吧!", variant="primary")
|
| 637 |
new_song = gr.Audio(label="Full song", type="filepath")
|
| 638 |
|
| 639 |
-
with gr.Tab('
|
| 640 |
tts_input = gr.TextArea(
|
| 641 |
-
label='
|
| 642 |
)
|
| 643 |
tts_speaker = gr.Dropdown(
|
| 644 |
[
|
|
@@ -652,7 +652,7 @@ with app:
|
|
| 652 |
type='index'
|
| 653 |
)
|
| 654 |
|
| 655 |
-
tts_convert_btn = gr.Button('
|
| 656 |
|
| 657 |
with gr.Tab("📺 - 音乐视频"):
|
| 658 |
with gr.Row():
|
|
@@ -680,7 +680,7 @@ with app:
|
|
| 680 |
interactive=True
|
| 681 |
)
|
| 682 |
|
| 683 |
-
with gr.Accordion('
|
| 684 |
feat_ratio = gr.Slider(
|
| 685 |
label='Feature ratio',
|
| 686 |
minimum=0,
|
|
@@ -725,7 +725,8 @@ with app:
|
|
| 725 |
for m in loaded_models
|
| 726 |
],
|
| 727 |
label='Model',
|
| 728 |
-
type='index'
|
|
|
|
| 729 |
)
|
| 730 |
|
| 731 |
# Model info
|
|
|
|
| 604 |
|
| 605 |
|
| 606 |
with app:
|
| 607 |
+
gr.HTML("<center>"
|
| 608 |
+
"<h1>🥳🎶🎡 - AI歌手,RVC歌声转换 + AI变声</h1>"
|
| 609 |
+
"</center>")
|
| 610 |
+
gr.Markdown("### <center>🦄 - 能够自动提取视频中的声音,并去除背景音;Powered by [RVC-Project](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)</center>")
|
| 611 |
+
gr.Markdown("### <center>更多精彩应用,敬请关注[滔滔AI](http://www.talktalkai.com);滔滔AI,为爱滔滔!💕</center>")
|
| 612 |
|
| 613 |
with gr.Tab("🤗 - B站视频提取声音"):
|
| 614 |
with gr.Row():
|
|
|
|
| 621 |
with gr.Column():
|
| 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])
|
|
|
|
| 630 |
|
| 631 |
with gr.Row():
|
| 632 |
with gr.Column():
|
| 633 |
+
with gr.Tab('🎶 - 歌声转换'):
|
| 634 |
input_audio = as_audio_vocals
|
| 635 |
vc_convert_btn = gr.Button('进行歌声转换吧!', variant='primary')
|
| 636 |
full_song = gr.Button("加入歌曲伴奏吧!", variant="primary")
|
| 637 |
new_song = gr.Audio(label="Full song", type="filepath")
|
| 638 |
|
| 639 |
+
with gr.Tab('🎙️ - 文本转语音'):
|
| 640 |
tts_input = gr.TextArea(
|
| 641 |
+
label='请填写您想要转换的文本'
|
| 642 |
)
|
| 643 |
tts_speaker = gr.Dropdown(
|
| 644 |
[
|
|
|
|
| 652 |
type='index'
|
| 653 |
)
|
| 654 |
|
| 655 |
+
tts_convert_btn = gr.Button('进行文本转语音吧', variant='primary')
|
| 656 |
|
| 657 |
with gr.Tab("📺 - 音乐视频"):
|
| 658 |
with gr.Row():
|
|
|
|
| 680 |
interactive=True
|
| 681 |
)
|
| 682 |
|
| 683 |
+
with gr.Accordion('更多设置', open=False):
|
| 684 |
feat_ratio = gr.Slider(
|
| 685 |
label='Feature ratio',
|
| 686 |
minimum=0,
|
|
|
|
| 725 |
for m in loaded_models
|
| 726 |
],
|
| 727 |
label='Model',
|
| 728 |
+
type='index',
|
| 729 |
+
value=3
|
| 730 |
)
|
| 731 |
|
| 732 |
# Model info
|