Spaces:
Runtime error
Runtime error
Commit
·
56b9d53
1
Parent(s):
71e0c5b
Update app.py
Browse files
app.py
CHANGED
|
@@ -351,9 +351,10 @@ with gr.Blocks(theme=theme, css=css) as App:
|
|
| 351 |
|
| 352 |
# Header
|
| 353 |
gr.HTML("<center>"
|
| 354 |
-
"<h1
|
| 355 |
"</center>")
|
| 356 |
-
|
|
|
|
| 357 |
# Information
|
| 358 |
with gr.Accordion("Just information!"):
|
| 359 |
information()
|
|
@@ -365,14 +366,14 @@ with gr.Blocks(theme=theme, css=css) as App:
|
|
| 365 |
ydl_url_input = gr.Textbox(label="Enter URL YouTube")
|
| 366 |
start = gr.Number(value=0, label="Start Time (seconds)")
|
| 367 |
end = gr.Number(value=15, label="End Time (seconds)")
|
| 368 |
-
ydl_url_submit = gr.Button("
|
| 369 |
with gr.Column():
|
| 370 |
ydl_audio_output = gr.Audio(label="Audio from YouTube")
|
| 371 |
|
| 372 |
with gr.Row():
|
| 373 |
with gr.Column():
|
| 374 |
as_audio_input = ydl_audio_output
|
| 375 |
-
as_audio_submit = gr.Button("
|
| 376 |
with gr.Column():
|
| 377 |
as_audio_vocals = gr.Audio(label="Vocal only")
|
| 378 |
as_audio_no_vocals = gr.Audio(label="Music only")
|
|
@@ -399,12 +400,20 @@ with gr.Blocks(theme=theme, css=css) as App:
|
|
| 399 |
vc_pitch_adjust = gr.Slider(label='Pitch', minimum=-24, maximum=24, step=1, value=0)
|
| 400 |
vc_f0_method = gr.Radio(label='F0 methods', choices=['pm', 'harvest'], value='pm', interactive=True)
|
| 401 |
vc_feat_ratio = gr.Slider(label='Feature ratio', minimum=0, maximum=1, step=0.1, value=0.6)
|
| 402 |
-
vc_audio_submit = gr.Button("
|
| 403 |
with gr.Column():
|
| 404 |
vc_audio_output = gr.Audio(label="Result audio", type="numpy")
|
| 405 |
vc_audio_message = gr.Textbox(label="Message")
|
| 406 |
vc_audio_submit.click(fn=voice_changer, inputs=[vc_audio_input, vc_model_index, vc_pitch_adjust, vc_f0_method, vc_feat_ratio], outputs=[vc_audio_output, vc_audio_message], show_progress=True, queue=True)
|
| 407 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 408 |
# Check Junk
|
| 409 |
check_junk()
|
| 410 |
|
|
|
|
| 351 |
|
| 352 |
# Header
|
| 353 |
gr.HTML("<center>"
|
| 354 |
+
"<h1>🥳🎶🎡 - AI歌手,RVC歌声转换</h1>"
|
| 355 |
"</center>")
|
| 356 |
+
gr.Markdown("### <center>🦄 - 能够自动提取视频中的声音,并去除背景音;Powered by [RVC-Project](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)</center>")
|
| 357 |
+
gr.Markdown("### <center>更多精彩应用,敬请关注[滔滔AI](http://www.talktalkai.com);滔滔AI,为爱滔滔!💕</center>")
|
| 358 |
# Information
|
| 359 |
with gr.Accordion("Just information!"):
|
| 360 |
information()
|
|
|
|
| 366 |
ydl_url_input = gr.Textbox(label="Enter URL YouTube")
|
| 367 |
start = gr.Number(value=0, label="Start Time (seconds)")
|
| 368 |
end = gr.Number(value=15, label="End Time (seconds)")
|
| 369 |
+
ydl_url_submit = gr.Button("提取声音文件吧", variant="primary")
|
| 370 |
with gr.Column():
|
| 371 |
ydl_audio_output = gr.Audio(label="Audio from YouTube")
|
| 372 |
|
| 373 |
with gr.Row():
|
| 374 |
with gr.Column():
|
| 375 |
as_audio_input = ydl_audio_output
|
| 376 |
+
as_audio_submit = gr.Button("去除背景音吧", variant="primary")
|
| 377 |
with gr.Column():
|
| 378 |
as_audio_vocals = gr.Audio(label="Vocal only")
|
| 379 |
as_audio_no_vocals = gr.Audio(label="Music only")
|
|
|
|
| 400 |
vc_pitch_adjust = gr.Slider(label='Pitch', minimum=-24, maximum=24, step=1, value=0)
|
| 401 |
vc_f0_method = gr.Radio(label='F0 methods', choices=['pm', 'harvest'], value='pm', interactive=True)
|
| 402 |
vc_feat_ratio = gr.Slider(label='Feature ratio', minimum=0, maximum=1, step=0.1, value=0.6)
|
| 403 |
+
vc_audio_submit = gr.Button("进行歌声转换吧!", variant="primary")
|
| 404 |
with gr.Column():
|
| 405 |
vc_audio_output = gr.Audio(label="Result audio", type="numpy")
|
| 406 |
vc_audio_message = gr.Textbox(label="Message")
|
| 407 |
vc_audio_submit.click(fn=voice_changer, inputs=[vc_audio_input, vc_model_index, vc_pitch_adjust, vc_f0_method, vc_feat_ratio], outputs=[vc_audio_output, vc_audio_message], show_progress=True, queue=True)
|
| 408 |
|
| 409 |
+
gr.Markdown("### <center>注意❗:请不要生成会对个人以及组织造成侵害的内容,此程序仅供科研、学习及个人娱乐使用。用户生成内容与程序开发者无关,请自觉合法合规使用,违反者一切后果自负。</center>")
|
| 410 |
+
gr.HTML('''
|
| 411 |
+
<div class="footer">
|
| 412 |
+
<p>🌊🏞️🎶 - 江水东流急,滔滔无尽声。 明·顾璘
|
| 413 |
+
</p>
|
| 414 |
+
</div>
|
| 415 |
+
''')
|
| 416 |
+
|
| 417 |
# Check Junk
|
| 418 |
check_junk()
|
| 419 |
|