Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ import shutil
|
|
| 5 |
import tempfile
|
| 6 |
import spaces
|
| 7 |
import sys
|
|
|
|
| 8 |
|
| 9 |
print("Installing flash-attn...")
|
| 10 |
# Install flash attention
|
|
@@ -251,8 +252,34 @@ with gr.Blocks() as demo:
|
|
| 251 |
|
| 252 |
gr.Examples(
|
| 253 |
examples=[
|
| 254 |
-
["pop rock male vocal", "[verse]
|
| 255 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
],
|
| 257 |
inputs=[genre_txt, lyrics_txt],
|
| 258 |
outputs=audio_output
|
|
|
|
| 5 |
import tempfile
|
| 6 |
import spaces
|
| 7 |
import sys
|
| 8 |
+
import re
|
| 9 |
|
| 10 |
print("Installing flash-attn...")
|
| 11 |
# Install flash attention
|
|
|
|
| 252 |
|
| 253 |
gr.Examples(
|
| 254 |
examples=[
|
| 255 |
+
["pop rock male vocal", """[verse]
|
| 256 |
+
Woke up in the morning, sun is shining bright
|
| 257 |
+
Chasing all my dreams, gotta get my mind right
|
| 258 |
+
City lights are fading, but my vision's clear
|
| 259 |
+
Got my team beside me, no room for fear
|
| 260 |
+
Walking through the streets, beats inside my head
|
| 261 |
+
Every step I take, closer to the bread
|
| 262 |
+
People passing by, they don't understand
|
| 263 |
+
Building up my future with my own two hands
|
| 264 |
+
|
| 265 |
+
[chorus]
|
| 266 |
+
This is my life, and I'm aiming for the top
|
| 267 |
+
Never gonna quit, no, I'm never gonna stop
|
| 268 |
+
Through the highs and lows, I'mma keep it real
|
| 269 |
+
Living out my dreams with this mic and a deal"""],
|
| 270 |
+
["electronic dance synth female", """
|
| 271 |
+
[verse]
|
| 272 |
+
In the quiet of the evening, shadows start to fall
|
| 273 |
+
Whispers of the night wind echo through the hall
|
| 274 |
+
Lost within the silence, I hear your gentle voice
|
| 275 |
+
Guiding me back homeward, making my heart rejoice
|
| 276 |
+
|
| 277 |
+
[chorus]
|
| 278 |
+
Don't let this moment fade, hold me close tonight
|
| 279 |
+
With you here beside me, everything's alright
|
| 280 |
+
Can't imagine life alone, don't want to let you go
|
| 281 |
+
Stay with me forever, let our love just flow
|
| 282 |
+
"""]
|
| 283 |
],
|
| 284 |
inputs=[genre_txt, lyrics_txt],
|
| 285 |
outputs=audio_output
|