Update app.py
Browse files
app.py
CHANGED
|
@@ -421,7 +421,7 @@ def update_info(lyrics):
|
|
| 421 |
)
|
| 422 |
|
| 423 |
def main():
|
| 424 |
-
#
|
| 425 |
initialize_system()
|
| 426 |
|
| 427 |
with gr.Blocks(css="""
|
|
@@ -437,7 +437,6 @@ def main():
|
|
| 437 |
padding: 20px;
|
| 438 |
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
| 439 |
}
|
| 440 |
-
/* ํ
์คํธ ํฌ๊ธฐ, ๋ง์ง ์กฐ์ */
|
| 441 |
h1, h2, h3 {
|
| 442 |
margin: 0;
|
| 443 |
padding: 0;
|
|
@@ -479,7 +478,8 @@ def main():
|
|
| 479 |
|
| 480 |
# ์ค๋ฅธ์ชฝ ์ค์ /์ ๋ณด ์ปฌ๋ผ
|
| 481 |
with gr.Column():
|
| 482 |
-
|
|
|
|
| 483 |
gr.Markdown("### Generation Settings")
|
| 484 |
num_segments = gr.Number(
|
| 485 |
label="Number of Song Segments (Auto-adjusted)",
|
|
@@ -498,15 +498,16 @@ def main():
|
|
| 498 |
interactive=False
|
| 499 |
)
|
| 500 |
|
| 501 |
-
|
|
|
|
| 502 |
gr.Markdown("### Song Info")
|
| 503 |
duration_info = gr.Label(label="Estimated Duration")
|
| 504 |
sections_info = gr.Label(label="Section Information")
|
| 505 |
|
| 506 |
submit_btn = gr.Button("Generate Music", variant="primary")
|
| 507 |
|
| 508 |
-
#
|
| 509 |
-
with gr.
|
| 510 |
music_out = gr.Audio(label="Generated Audio")
|
| 511 |
|
| 512 |
# ์์
|
|
@@ -525,13 +526,30 @@ Don't let this moment fade, hold me close tonight
|
|
| 525 |
With you here beside me, everything's alright
|
| 526 |
Can't imagine life alone, don't want to let you go
|
| 527 |
Stay with me forever, let our love just flow
|
| 528 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 529 |
],
|
| 530 |
[
|
| 531 |
"K-pop bright energetic synth dance electronic",
|
| 532 |
"""[verse]
|
| 533 |
์ธ์ ๊ฐ ๋ง์ฃผํ ๋๋น ์์์
|
| 534 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 535 |
[chorus]
|
| 536 |
๋ค์ ํ ๋ฒ ๋ด๊ฒ ๋งํด์ค
|
| 537 |
"""
|
|
@@ -558,6 +576,7 @@ Stay with me forever, let our love just flow
|
|
| 558 |
return demo
|
| 559 |
|
| 560 |
|
|
|
|
| 561 |
if __name__ == "__main__":
|
| 562 |
demo = main()
|
| 563 |
demo.queue(max_size=20).launch(
|
|
|
|
| 421 |
)
|
| 422 |
|
| 423 |
def main():
|
| 424 |
+
# ์์คํ
์ด๊ธฐํ (ํ์ํ ๋ชจ๋ธ ๋ค์ด๋ก๋/์ค์น ๋ฑ)
|
| 425 |
initialize_system()
|
| 426 |
|
| 427 |
with gr.Blocks(css="""
|
|
|
|
| 437 |
padding: 20px;
|
| 438 |
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
| 439 |
}
|
|
|
|
| 440 |
h1, h2, h3 {
|
| 441 |
margin: 0;
|
| 442 |
padding: 0;
|
|
|
|
| 478 |
|
| 479 |
# ์ค๋ฅธ์ชฝ ์ค์ /์ ๋ณด ์ปฌ๋ผ
|
| 480 |
with gr.Column():
|
| 481 |
+
# ์ฌ๊ธฐ์ gr.Box -> gr.Group๋ก ๋ณ๊ฒฝ
|
| 482 |
+
with gr.Group():
|
| 483 |
gr.Markdown("### Generation Settings")
|
| 484 |
num_segments = gr.Number(
|
| 485 |
label="Number of Song Segments (Auto-adjusted)",
|
|
|
|
| 498 |
interactive=False
|
| 499 |
)
|
| 500 |
|
| 501 |
+
# ์ฌ๊ธฐ์๋ gr.Box -> gr.Group๋ก ๋ณ๊ฒฝ
|
| 502 |
+
with gr.Group():
|
| 503 |
gr.Markdown("### Song Info")
|
| 504 |
duration_info = gr.Label(label="Estimated Duration")
|
| 505 |
sections_info = gr.Label(label="Section Information")
|
| 506 |
|
| 507 |
submit_btn = gr.Button("Generate Music", variant="primary")
|
| 508 |
|
| 509 |
+
# ์๋๋ gr.Box -> gr.Group๋ก ๋ณ๊ฒฝ
|
| 510 |
+
with gr.Group():
|
| 511 |
music_out = gr.Audio(label="Generated Audio")
|
| 512 |
|
| 513 |
# ์์
|
|
|
|
| 526 |
With you here beside me, everything's alright
|
| 527 |
Can't imagine life alone, don't want to let you go
|
| 528 |
Stay with me forever, let our love just flow
|
| 529 |
+
|
| 530 |
+
[verse]
|
| 531 |
+
In the quiet of the evening, shadows start to fall
|
| 532 |
+
Whispers of the night wind echo through the hall
|
| 533 |
+
Lost within the silence, I hear your gentle voice
|
| 534 |
+
Guiding me back homeward, making my heart rejoice
|
| 535 |
+
|
| 536 |
+
[chorus]
|
| 537 |
+
Don't let this moment fade, hold me close tonight
|
| 538 |
+
With you here beside me, everything's alright
|
| 539 |
+
Can't imagine life alone, don't want to let you go
|
| 540 |
+
Stay with me forever, let our love just flow"""
|
| 541 |
],
|
| 542 |
[
|
| 543 |
"K-pop bright energetic synth dance electronic",
|
| 544 |
"""[verse]
|
| 545 |
์ธ์ ๊ฐ ๋ง์ฃผํ ๋๋น ์์์
|
| 546 |
|
| 547 |
+
[chorus]
|
| 548 |
+
๋ค์ ํ ๋ฒ ๋ด๊ฒ ๋งํด์ค
|
| 549 |
+
|
| 550 |
+
[verse]
|
| 551 |
+
์ด๋์ด ๋ฐค์ ์ง๋ ๋๋ง๋ค
|
| 552 |
+
|
| 553 |
[chorus]
|
| 554 |
๋ค์ ํ ๋ฒ ๋ด๊ฒ ๋งํด์ค
|
| 555 |
"""
|
|
|
|
| 576 |
return demo
|
| 577 |
|
| 578 |
|
| 579 |
+
|
| 580 |
if __name__ == "__main__":
|
| 581 |
demo = main()
|
| 582 |
demo.queue(max_size=20).launch(
|