Fabrice-TIERCELIN commited on
Commit
8679470
1 Parent(s): ab389b1
Files changed (1) hide show
  1. demos/musicgen_app.py +4 -4
demos/musicgen_app.py CHANGED
@@ -260,9 +260,9 @@ def ui_full(launch_kwargs):
260
  melody = gr.Audio(source="upload", type="numpy", label="File",
261
  interactive=True, elem_id="melody-input")
262
  with gr.Row():
263
- submit = gr.Button("Generate")
264
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
265
- _ = gr.Button("Abort all").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",
@@ -384,7 +384,7 @@ def ui_batched(launch_kwargs):
384
  melody = gr.Audio(source="upload", type="numpy", label="File",
385
  interactive=True, elem_id="melody-input")
386
  with gr.Row():
387
- submit = gr.Button("Generate")
388
  with gr.Column():
389
  output = gr.Video(label="Generated Music")
390
  audio_output = gr.Audio(label="Generated Music (wav)", type='filepath')
@@ -413,7 +413,7 @@ def ui_batched(launch_kwargs):
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).
 
260
  melody = gr.Audio(source="upload", type="numpy", label="File",
261
  interactive=True, elem_id="melody-input")
262
  with gr.Row():
263
+ submit = gr.Button("Generate", variant="primary")
264
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
265
+ _ = gr.Button("Abort all", variant="stop").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",
 
384
  melody = gr.Audio(source="upload", type="numpy", label="File",
385
  interactive=True, elem_id="melody-input")
386
  with gr.Row():
387
+ submit = gr.Button("Generate", variant="primary")
388
  with gr.Column():
389
  output = gr.Video(label="Generated Music")
390
  audio_output = gr.Audio(label="Generated Music (wav)", type='filepath')
 
413
  gr.Markdown("""
414
  ### More details
415
 
416
+ The model will generate 30 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).