Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -417,6 +417,27 @@ with gr.Blocks() as demo:
|
|
| 417 |
submit_btn = gr.Button("Submit")
|
| 418 |
music_out = gr.Audio(label="Audio Result")
|
| 419 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 420 |
gr.Examples(
|
| 421 |
examples=[
|
| 422 |
[
|
|
@@ -457,7 +478,7 @@ Living out my dreams with this mic and a deal
|
|
| 457 |
inputs=[genre_txt, lyrics_txt],
|
| 458 |
outputs=[music_out],
|
| 459 |
cache_examples=True,
|
| 460 |
-
cache_mode="
|
| 461 |
fn=infer
|
| 462 |
)
|
| 463 |
|
|
|
|
| 417 |
submit_btn = gr.Button("Submit")
|
| 418 |
music_out = gr.Audio(label="Audio Result")
|
| 419 |
|
| 420 |
+
gr.Examples(
|
| 421 |
+
examples=[
|
| 422 |
+
["Rap, Hip-Hop, Street Vibes, Tough, Piercing Vocals, Piano, Synthesizer, Clear Male Vocals",
|
| 423 |
+
"""[verse]
|
| 424 |
+
Woke up in the morning, sun is shining bright
|
| 425 |
+
Chasing all my dreams, gotta get my mind right
|
| 426 |
+
City lights are fading, but my vision's clear
|
| 427 |
+
Got my team beside me, no room for fear
|
| 428 |
+
Walking through the streets, beats inside my head
|
| 429 |
+
Every step I take, closer to the bread
|
| 430 |
+
People passing by, they don't understand
|
| 431 |
+
Building up my future with my own two hands
|
| 432 |
+
"""],
|
| 433 |
+
],
|
| 434 |
+
inputs=[genre_txt, lyrics_txt],
|
| 435 |
+
outputs=[music_out],
|
| 436 |
+
cache_examples=True,
|
| 437 |
+
cache_mode="eager",
|
| 438 |
+
fn=infer
|
| 439 |
+
)
|
| 440 |
+
|
| 441 |
gr.Examples(
|
| 442 |
examples=[
|
| 443 |
[
|
|
|
|
| 478 |
inputs=[genre_txt, lyrics_txt],
|
| 479 |
outputs=[music_out],
|
| 480 |
cache_examples=True,
|
| 481 |
+
cache_mode="lazy",
|
| 482 |
fn=infer
|
| 483 |
)
|
| 484 |
|