Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import spaces
|
|
11 |
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")
|
12 |
processor = MusicgenProcessor.from_pretrained("facebook/musicgen-small")
|
13 |
|
14 |
-
title
|
15 |
|
16 |
class MusicgenStreamer(BaseStreamer):
|
17 |
def __init__(self, model, device=None, play_steps=10, stride=None, timeout=None):
|
@@ -84,10 +84,6 @@ demo = gr.Interface(
|
|
84 |
],
|
85 |
outputs=[gr.Audio(label="Generated Music", streaming=True, autoplay=True)],
|
86 |
examples=[
|
87 |
-
["An 80s driving pop song with heavy drums and synth pads in the background", 30, 1.5, 5],
|
88 |
-
["A cheerful country song with acoustic guitars", 30, 1.5, 5],
|
89 |
-
["90s rock song with electric guitar and heavy drums", 30, 1.5, 5],
|
90 |
-
["a light and cheerly EDM track, with syncopated drums, aery pads, and strong emotions bpm: 130", 30, 1.5, 5],
|
91 |
["lofi slow bpm electro chill with organic samples", 30, 1.5, 5],
|
92 |
],
|
93 |
title=title,
|
|
|
11 |
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small")
|
12 |
processor = MusicgenProcessor.from_pretrained("facebook/musicgen-small")
|
13 |
|
14 |
+
title = "MusicGen Streaming (by Sanchit Gandhi)"
|
15 |
|
16 |
class MusicgenStreamer(BaseStreamer):
|
17 |
def __init__(self, model, device=None, play_steps=10, stride=None, timeout=None):
|
|
|
84 |
],
|
85 |
outputs=[gr.Audio(label="Generated Music", streaming=True, autoplay=True)],
|
86 |
examples=[
|
|
|
|
|
|
|
|
|
87 |
["lofi slow bpm electro chill with organic samples", 30, 1.5, 5],
|
88 |
],
|
89 |
title=title,
|