sanchit-gandhi HF staff commited on
Commit
c17f9f9
1 Parent(s): 445beee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -214,19 +214,19 @@ demo = gr.Interface(
214
  fn=generate_audio,
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=0.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", 20, 0.5, 5],
226
- ["A cheerful country song with acoustic guitars", 15, 0.5, 5],
227
- ["90s rock song with electric guitar and heavy drums", 15, 0.5, 5],
228
- ["a light and cheerly EDM track, with syncopated drums, aery pads, and strong emotions bpm: 130", 30, 0.5, 5],
229
- ["lofi slow bpm electro chill with organic samples", 30, 0.5, 5],
230
  ],
231
  title=title,
232
  description=description,
 
214
  fn=generate_audio,
215
  inputs=[
216
  gr.Text(label="Prompt", value="80s pop track with synth and instrumentals"),
217
+ gr.Slider(15, 30, value=20, step=5, label="Audio length in seconds"),
218
+ gr.Slider(2.5, 7.5, value=5.0, 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", 20, 5, 5],
226
+ ["A cheerful country song with acoustic guitars", 20, 5, 5],
227
+ ["90s rock song with electric guitar and heavy drums", 20, 5, 5],
228
+ ["a light and cheerly EDM track, with syncopated drums, aery pads, and strong emotions bpm: 130", 30, 5, 5],
229
+ ["lofi slow bpm electro chill with organic samples", 30, 5, 5],
230
  ],
231
  title=title,
232
  description=description,