tomandandy commited on
Commit
e2ea31a
1 Parent(s): 1a8df35
Files changed (1) hide show
  1. demos/musicgen_app.py +8 -22
demos/musicgen_app.py CHANGED
@@ -247,7 +247,7 @@ def ui_full(launch_kwargs):
247
  # MusicGen
248
  Derived from [MusicGen](https://github.com/facebookresearch/audiocraft),
249
  presented at: ["Simple and Controllable Music Generation"](https://huggingface.co/papers/2306.05284).
250
- Modified for experiments in the re-scoring of *Metropolis* and Wings.
251
  """
252
  )
253
  with gr.Row():
@@ -265,7 +265,8 @@ def ui_full(launch_kwargs):
265
  _ = gr.Button("Interrupt").click(fn=interrupt, queue=False)
266
  with gr.Row():
267
  model = gr.Radio(["facebook/musicgen-melody", "facebook/musicgen-medium", "facebook/musicgen-small",
268
- "facebook/musicgen-large", "facebook/musicgen-melody-large",
 
269
  "facebook/musicgen-stereo-small", "facebook/musicgen-stereo-medium",
270
  "facebook/musicgen-stereo-melody", "facebook/musicgen-stereo-large",
271
  "facebook/musicgen-stereo-melody-large"],
@@ -296,25 +297,19 @@ def ui_full(launch_kwargs):
296
  fn=predict_full,
297
  examples=[
298
  [
299
- "An 80s driving pop song with heavy drums and synth pads in the background",
300
- "./assets/bach.mp3",
301
  "facebook/musicgen-stereo-melody",
302
  "Default"
303
  ],
304
  [
305
  "A cheerful country song with acoustic guitars",
306
  "./assets/bolero_ravel.mp3",
307
- "facebook/musicgen-stereo-melody",
308
  "Default"
309
  ],
310
  [
311
- "90s rock song with electric guitar and heavy drums",
312
- None,
313
- "facebook/musicgen-stereo-medium",
314
- "Default"
315
- ],
316
- [
317
- "a light and cheerly EDM track, with syncopated drums, aery pads, and strong emotions",
318
  "./assets/bach.mp3",
319
  "facebook/musicgen-stereo-melody",
320
  "Default"
@@ -325,12 +320,6 @@ def ui_full(launch_kwargs):
325
  "facebook/musicgen-stereo-medium",
326
  "Default"
327
  ],
328
- [
329
- "Punk rock with loud drum and power guitar",
330
- None,
331
- "facebook/musicgen-stereo-medium",
332
- "MultiBand_Diffusion"
333
- ],
334
  ],
335
  inputs=[text, melody, model, decoder],
336
  outputs=[output]
@@ -339,7 +328,6 @@ def ui_full(launch_kwargs):
339
  """
340
  ### More details
341
 
342
- The model will generate a short music extract based on the description you provided.
343
  The model can generate up to 30 seconds of audio in one pass.
344
 
345
  The model was trained with description from a stock music catalog, descriptions that will work best
@@ -389,9 +377,7 @@ def ui_batched(launch_kwargs):
389
  """
390
  # MusicGen
391
 
392
- This is the demo for [MusicGen](https://github.com/facebookresearch/audiocraft/blob/main/docs/MUSICGEN.md),
393
- a simple and controllable model for music generation
394
- presented at: ["Simple and Controllable Music Generation"](https://huggingface.co/papers/2306.05284).
395
  <br/>
396
  <a href="https://huggingface.co/spaces/facebook/MusicGen?duplicate=true"
397
  style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank">
 
247
  # MusicGen
248
  Derived from [MusicGen](https://github.com/facebookresearch/audiocraft),
249
  presented at: ["Simple and Controllable Music Generation"](https://huggingface.co/papers/2306.05284).
250
+ Modified for experiments in the re-scoring of *Metropolis* and *Wings*.
251
  """
252
  )
253
  with gr.Row():
 
265
  _ = gr.Button("Interrupt").click(fn=interrupt, queue=False)
266
  with gr.Row():
267
  model = gr.Radio(["facebook/musicgen-melody", "facebook/musicgen-medium", "facebook/musicgen-small",
268
+ "facebook/musicgen-large",
269
+ "facebook/musicgen-melody-large",
270
  "facebook/musicgen-stereo-small", "facebook/musicgen-stereo-medium",
271
  "facebook/musicgen-stereo-melody", "facebook/musicgen-stereo-large",
272
  "facebook/musicgen-stereo-melody-large"],
 
297
  fn=predict_full,
298
  examples=[
299
  [
300
+ "An angry propulsive industrial score with distorted synthesizers and tortured vocals.",
301
+ None,
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"
 
320
  "facebook/musicgen-stereo-medium",
321
  "Default"
322
  ],
 
 
 
 
 
 
323
  ],
324
  inputs=[text, melody, model, decoder],
325
  outputs=[output]
 
328
  """
329
  ### More details
330
 
 
331
  The model can generate up to 30 seconds of audio in one pass.
332
 
333
  The model was trained with description from a stock music catalog, descriptions that will work best
 
377
  """
378
  # MusicGen
379
 
380
+ For Metroplis - from: ["Simple and Controllable Music Generation"](https://huggingface.co/papers/2306.05284).
 
 
381
  <br/>
382
  <a href="https://huggingface.co/spaces/facebook/MusicGen?duplicate=true"
383
  style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank">