tomandandy commited on
Commit
67f93cb
·
1 Parent(s): e2ea31a
Files changed (1) hide show
  1. demos/musicgen_app.py +7 -27
demos/musicgen_app.py CHANGED
@@ -302,24 +302,12 @@ def ui_full(launch_kwargs):
302
  "facebook/musicgen-stereo-melody",
303
  "Default"
304
  ],
305
- [
306
- "A cheerful country song with acoustic guitars",
307
- "./assets/bolero_ravel.mp3",
308
- "facebook/musicgen-large",
309
- "Default"
310
- ],
311
  [
312
  "A monstrous industrial bach hybrid",
313
  "./assets/bach.mp3",
314
  "facebook/musicgen-stereo-melody",
315
  "Default"
316
  ],
317
- [
318
- "lofi slow bpm electro chill with organic samples",
319
- None,
320
- "facebook/musicgen-stereo-medium",
321
- "Default"
322
- ],
323
  ],
324
  inputs=[text, melody, model, decoder],
325
  outputs=[output]
@@ -407,24 +395,16 @@ def ui_batched(launch_kwargs):
407
  fn=predict_batched,
408
  examples=[
409
  [
410
- "An 80s driving pop song with heavy drums and synth pads in the background",
411
- "./assets/bach.mp3",
412
- ],
413
- [
414
- "A cheerful country song with acoustic guitars",
415
- "./assets/bolero_ravel.mp3",
416
- ],
417
- [
418
- "90s rock song with electric guitar and heavy drums",
419
  None,
 
 
420
  ],
421
  [
422
- "a light and cheerly EDM track, with syncopated drums, aery pads, and strong emotions bpm: 130",
423
  "./assets/bach.mp3",
424
- ],
425
- [
426
- "lofi slow bpm electro chill with organic samples",
427
- None,
428
  ],
429
  ],
430
  inputs=[text, melody],
@@ -433,7 +413,7 @@ def ui_batched(launch_kwargs):
433
  gr.Markdown("""
434
  ### More details
435
 
436
- The model will generate 15 seconds of audio based on the description you provided.
437
  The model was trained with description from a stock music catalog, descriptions that will work best
438
  should include some level of details on the instruments present, along with some intended use case
439
  (e.g. adding "perfect for a commercial" can somehow help).
 
302
  "facebook/musicgen-stereo-melody",
303
  "Default"
304
  ],
 
 
 
 
 
 
305
  [
306
  "A monstrous industrial bach hybrid",
307
  "./assets/bach.mp3",
308
  "facebook/musicgen-stereo-melody",
309
  "Default"
310
  ],
 
 
 
 
 
 
311
  ],
312
  inputs=[text, melody, model, decoder],
313
  outputs=[output]
 
395
  fn=predict_batched,
396
  examples=[
397
  [
398
+ "An angry propulsive industrial score with distorted synthesizers and tortured vocals.",
 
 
 
 
 
 
 
 
399
  None,
400
+ "facebook/musicgen-stereo-melody",
401
+ "Default"
402
  ],
403
  [
404
+ "A monstrous industrial bach hybrid",
405
  "./assets/bach.mp3",
406
+ "facebook/musicgen-stereo-melody",
407
+ "Default"
 
 
408
  ],
409
  ],
410
  inputs=[text, melody],
 
413
  gr.Markdown("""
414
  ### More details
415
 
416
+ The model will generate 15 seconds of audio.
417
  The model was trained with description from a stock music catalog, descriptions that will work best
418
  should include some level of details on the instruments present, along with some intended use case
419
  (e.g. adding "perfect for a commercial" can somehow help).