eusip commited on
Commit
505c31b
·
verified ·
1 Parent(s): 811864c

Upload musicgen_app.py

Browse files
Files changed (1) hide show
  1. demos/musicgen_app.py +17 -6
demos/musicgen_app.py CHANGED
@@ -317,12 +317,23 @@ def ui_full(launch_kwargs):
317
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
318
  _ = gr.Button("Interrupt").click(fn=interrupt, queue=False)
319
  with gr.Row():
320
- # model = gr.Radio(["facebook/musicgen-melody", "facebook/musicgen-medium", "facebook/musicgen-small",
321
- # "facebook/musicgen-large", "facebook/musicgen-melody-large",
322
- # "facebook/musicgen-stereo-small", "facebook/musicgen-stereo-medium",
323
- # "facebook/musicgen-stereo-melody", "facebook/musicgen-stereo-large",
324
- # "facebook/musicgen-stereo-melody-large"],
325
- # label="Model", value="facebook/musicgen-stereo-melody", interactive=True)
 
 
 
 
 
 
 
 
 
 
 
326
  model_path = gr.Text(label="Model Path (custom models)")
327
  with gr.Row():
328
  decoder = gr.Radio(
 
317
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
318
  _ = gr.Button("Interrupt").click(fn=interrupt, queue=False)
319
  with gr.Row():
320
+ model = gr.Radio(
321
+ [
322
+ "facebook/musicgen-melody",
323
+ "facebook/musicgen-medium",
324
+ "facebook/musicgen-small",
325
+ "facebook/musicgen-large",
326
+ "facebook/musicgen-melody-large",
327
+ "facebook/musicgen-stereo-small",
328
+ "facebook/musicgen-stereo-medium",
329
+ "facebook/musicgen-stereo-melody",
330
+ "facebook/musicgen-stereo-large",
331
+ "facebook/musicgen-stereo-melody-large",
332
+ ],
333
+ label="Model",
334
+ value="facebook/musicgen-stereo-melody",
335
+ interactive=True,
336
+ )
337
  model_path = gr.Text(label="Model Path (custom models)")
338
  with gr.Row():
339
  decoder = gr.Radio(