Fabrice-TIERCELIN commited on
Commit
78747f6
β€’
1 Parent(s): b1e69f2

AI Jukebox

Browse files
Files changed (1) hide show
  1. demos/musicgen_app.py +5 -5
demos/musicgen_app.py CHANGED
@@ -255,14 +255,14 @@ def hide_information(choice):
255
 
256
  def ui_full(launch_kwargs):
257
  with gr.Blocks() as interface:
258
- gr.Markdown(
259
  """
260
  <h1 style="text-align: center;">Text-to-Music / Music-to-Music</h1>
261
  <p style="text-align: center;">Generates up to 2 minutes of music freely, without account and without watermark that you can download</p>
262
  <br/>
263
  <br/>
264
- πŸš€ Powered by <a href="https://github.com/facebookresearch/audiocraft">MusicGen</a>.
265
- You'd rather create way better quality music on <a href="https://www.udio.com">Udio</a> till it's free (up to May 2024).
266
  If you are looking for sound effect rather than music, I recommend you <i>Tango 2</i>.
267
  The generated tracks tend to be very monotone so I advise you to add an original track to force the AI to make variations.
268
  <br/>
@@ -305,13 +305,13 @@ def ui_full(launch_kwargs):
305
  label="Model", value="facebook/musicgen-stereo-melody", interactive=True)
306
  model_path = gr.Text(label="Model Path (custom models)")
307
  with gr.Row():
308
- submit = gr.Button("Generate", variant = "primary")
309
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
310
  _ = gr.Button("Abort all", variant="stop").click(fn=interrupt, queue = False)
311
  with gr.Column():
312
  output = gr.Video(label="Generated Music")
313
  audio_output = gr.Audio(label = "Generated Music (wav)", type='filepath', autoplay = True, show_download_button = True)
314
- output_hint = gr.Label(label = "Information")
315
  diffusion_output = gr.Video(label="MultiBand Diffusion Decoder")
316
  audio_diffusion = gr.Audio(label="MultiBand Diffusion Decoder (wav)", type='filepath')
317
 
 
255
 
256
  def ui_full(launch_kwargs):
257
  with gr.Blocks() as interface:
258
+ gr.HTML(
259
  """
260
  <h1 style="text-align: center;">Text-to-Music / Music-to-Music</h1>
261
  <p style="text-align: center;">Generates up to 2 minutes of music freely, without account and without watermark that you can download</p>
262
  <br/>
263
  <br/>
264
+ ✨ Powered by <a href="https://github.com/facebookresearch/audiocraft">MusicGen</a>.
265
+ You'd rather create way better quality music with <a href="https://huggingface.co/spaces/enzostvs/ai-jukebox">AI Jukebox</a> or on <a href="https://www.udio.com">Udio</a>.
266
  If you are looking for sound effect rather than music, I recommend you <i>Tango 2</i>.
267
  The generated tracks tend to be very monotone so I advise you to add an original track to force the AI to make variations.
268
  <br/>
 
305
  label="Model", value="facebook/musicgen-stereo-melody", interactive=True)
306
  model_path = gr.Text(label="Model Path (custom models)")
307
  with gr.Row():
308
+ submit = gr.Button("πŸš€ Generate", variant = "primary")
309
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
310
  _ = gr.Button("Abort all", variant="stop").click(fn=interrupt, queue = False)
311
  with gr.Column():
312
  output = gr.Video(label="Generated Music")
313
  audio_output = gr.Audio(label = "Generated Music (wav)", type='filepath', autoplay = True, show_download_button = True)
314
+ output_hint = gr.Label()
315
  diffusion_output = gr.Video(label="MultiBand Diffusion Decoder")
316
  audio_diffusion = gr.Audio(label="MultiBand Diffusion Decoder (wav)", type='filepath')
317