Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
85a5642
1
Parent(s):
fa5ec46
bump streaming interval
Browse files
app.py
CHANGED
@@ -215,18 +215,18 @@ demo = gr.Interface(
|
|
215 |
inputs=[
|
216 |
gr.Text(label="Prompt", value="80s pop track with synth and instrumentals"),
|
217 |
gr.Slider(10, 30, value=15, step=5, label="Audio length in seconds"),
|
218 |
-
gr.Slider(0.5, 2.5, value=
|
219 |
gr.Slider(0, 10, value=5, step=1, label="Seed for random generations"),
|
220 |
],
|
221 |
outputs=[
|
222 |
gr.Audio(label="Generated Music", streaming=True, autoplay=True)
|
223 |
],
|
224 |
examples=[
|
225 |
-
["An 80s driving pop song with heavy drums and synth pads in the background", 30,
|
226 |
-
["A cheerful country song with acoustic guitars", 30,
|
227 |
-
["90s rock song with electric guitar and heavy drums", 30,
|
228 |
-
["a light and cheerly EDM track, with syncopated drums, aery pads, and strong emotions bpm: 130", 30,
|
229 |
-
["lofi slow bpm electro chill with organic samples", 30,
|
230 |
],
|
231 |
title=title,
|
232 |
description=description,
|
|
|
215 |
inputs=[
|
216 |
gr.Text(label="Prompt", value="80s pop track with synth and instrumentals"),
|
217 |
gr.Slider(10, 30, value=15, step=5, label="Audio length in seconds"),
|
218 |
+
gr.Slider(0.5, 2.5, value=1.5, step=0.5, label="Streaming interval in seconds", info="Lower = shorter chunks, lower latency, more codec steps"),
|
219 |
gr.Slider(0, 10, value=5, step=1, label="Seed for random generations"),
|
220 |
],
|
221 |
outputs=[
|
222 |
gr.Audio(label="Generated Music", streaming=True, autoplay=True)
|
223 |
],
|
224 |
examples=[
|
225 |
+
["An 80s driving pop song with heavy drums and synth pads in the background", 30, 1.5, 5],
|
226 |
+
["A cheerful country song with acoustic guitars", 30, 1.5, 5],
|
227 |
+
["90s rock song with electric guitar and heavy drums", 30, 1.5, 5],
|
228 |
+
["a light and cheerly EDM track, with syncopated drums, aery pads, and strong emotions bpm: 130", 30, 1.5, 5],
|
229 |
+
["lofi slow bpm electro chill with organic samples", 30, 1.5, 5],
|
230 |
],
|
231 |
title=title,
|
232 |
description=description,
|