Update app.py
Browse files
app.py
CHANGED
|
@@ -331,23 +331,11 @@ def get_last_mp3_file(output_dir):
|
|
| 331 |
return mp3_files_with_path[0]
|
| 332 |
|
| 333 |
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
# Gradio μΈν°νμ΄μ€
|
| 338 |
with gr.Blocks() as demo:
|
| 339 |
with gr.Column():
|
| 340 |
gr.Markdown("# YuE: Open Music Foundation Models for Full-Song Generation (Multi-Language Support)")
|
| 341 |
-
|
| 342 |
-
<div style="display:flex;column-gap:4px;">
|
| 343 |
-
<a href="https://github.com/multimodal-art-projection/YuE">
|
| 344 |
-
<img src='https://img.shields.io/badge/GitHub-Repo-blue'>
|
| 345 |
-
</a>
|
| 346 |
-
<a href="https://map-yue.github.io">
|
| 347 |
-
<img src='https://img.shields.io/badge/Project-Page-green'>
|
| 348 |
-
</a>
|
| 349 |
-
</div>
|
| 350 |
-
""")
|
| 351 |
|
| 352 |
with gr.Row():
|
| 353 |
with gr.Column():
|
|
@@ -399,17 +387,6 @@ With you here beside me, everything's alright
|
|
| 399 |
Can't imagine life alone, don't want to let you go
|
| 400 |
Stay with me forever, let our love just flow
|
| 401 |
|
| 402 |
-
[verse]
|
| 403 |
-
Morning light is breaking, through the window pane
|
| 404 |
-
Memories of yesterday, like soft summer rain
|
| 405 |
-
In your arms I'm finding, all I'm dreaming of
|
| 406 |
-
Every day beside you, fills my heart with love
|
| 407 |
-
|
| 408 |
-
[chorus]
|
| 409 |
-
Don't let this moment fade, hold me close tonight
|
| 410 |
-
With you here beside me, everything's alright
|
| 411 |
-
Can't imagine life alone, don't want to let you go
|
| 412 |
-
Stay with me forever, let our love just flow
|
| 413 |
"""
|
| 414 |
],
|
| 415 |
# νκ΅μ΄ μμ
|
|
@@ -427,17 +404,6 @@ Stay with me forever, let our love just flow
|
|
| 427 |
μμν κ³μλ μ°λ¦¬μ λ
Έλ
|
| 428 |
μ΄ μκ°μ κΈ°μ΅ν΄ forever
|
| 429 |
|
| 430 |
-
[verse]
|
| 431 |
-
μλ‘μ΄ λ΄μΌμ ν₯ν΄ λμκ°
|
| 432 |
-
μ°λ¦¬λ§μ κΈΈμ λ§λ€μ΄κ°
|
| 433 |
-
λ―ΏμμΌλ‘ κ°λν μ°λ¦¬μ λ§
|
| 434 |
-
μ λ λ©μΆμ§ μμ κ³μν΄μ
|
| 435 |
-
|
| 436 |
-
[chorus]
|
| 437 |
-
λ¬λ €κ°μ λ λμ΄ λ λ©λ¦¬
|
| 438 |
-
λλ €μμ μμ΄ λμ ν¨κ»λΌλ©΄
|
| 439 |
-
μμν κ³μλ μ°λ¦¬μ λ
Έλ
|
| 440 |
-
μ΄ μκ°μ κΈ°μ΅ν΄ forever
|
| 441 |
"""
|
| 442 |
]
|
| 443 |
],
|
|
@@ -454,7 +420,6 @@ Stay with me forever, let our love just flow
|
|
| 454 |
outputs=[music_out]
|
| 455 |
)
|
| 456 |
|
| 457 |
-
# μλ² μ€μ μΌλ‘ μ€ν
|
| 458 |
# μλ² μ€μ μΌλ‘ μ€ν
|
| 459 |
demo.queue(max_size=20).launch(
|
| 460 |
server_name="0.0.0.0",
|
|
@@ -462,5 +427,5 @@ demo.queue(max_size=20).launch(
|
|
| 462 |
share=True,
|
| 463 |
show_api=True,
|
| 464 |
show_error=True,
|
| 465 |
-
|
| 466 |
)
|
|
|
|
| 331 |
return mp3_files_with_path[0]
|
| 332 |
|
| 333 |
|
|
|
|
|
|
|
|
|
|
| 334 |
# Gradio μΈν°νμ΄μ€
|
| 335 |
with gr.Blocks() as demo:
|
| 336 |
with gr.Column():
|
| 337 |
gr.Markdown("# YuE: Open Music Foundation Models for Full-Song Generation (Multi-Language Support)")
|
| 338 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 339 |
|
| 340 |
with gr.Row():
|
| 341 |
with gr.Column():
|
|
|
|
| 387 |
Can't imagine life alone, don't want to let you go
|
| 388 |
Stay with me forever, let our love just flow
|
| 389 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 390 |
"""
|
| 391 |
],
|
| 392 |
# νκ΅μ΄ μμ
|
|
|
|
| 404 |
μμν κ³μλ μ°λ¦¬μ λ
Έλ
|
| 405 |
μ΄ μκ°μ κΈ°μ΅ν΄ forever
|
| 406 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 407 |
"""
|
| 408 |
]
|
| 409 |
],
|
|
|
|
| 420 |
outputs=[music_out]
|
| 421 |
)
|
| 422 |
|
|
|
|
| 423 |
# μλ² μ€μ μΌλ‘ μ€ν
|
| 424 |
demo.queue(max_size=20).launch(
|
| 425 |
server_name="0.0.0.0",
|
|
|
|
| 427 |
share=True,
|
| 428 |
show_api=True,
|
| 429 |
show_error=True,
|
| 430 |
+
max_threads=2
|
| 431 |
)
|