Fabrice-TIERCELIN commited on
Commit
912106c
·
verified ·
1 Parent(s): 07ea31c

Focus on prompt

Browse files
Files changed (1) hide show
  1. demos/musicgen_app.py +4 -3
demos/musicgen_app.py CHANGED
@@ -244,7 +244,8 @@ def ui_full(launch_kwargs):
244
  with gr.Blocks() as interface:
245
  gr.Markdown(
246
  """
247
- # Text-to-Music / Music-to-Music
 
248
  Derived from [MusicGen](https://github.com/facebookresearch/audiocraft),
249
  presented at: ["Simple and Controllable Music Generation"](https://huggingface.co/papers/2306.05284).
250
  MusicGen gets better results than other AIs like WaveFormer.
@@ -256,14 +257,14 @@ def ui_full(launch_kwargs):
256
  with gr.Row():
257
  with gr.Column():
258
  with gr.Row():
259
- text = gr.Text(label="Input Text", placeholder="Describe your music here", interactive=True)
260
  with gr.Column():
261
  radio = gr.Radio(["file", "mic"], value="file",
262
  label="Condition on a melody (optional) File or Microphone")
263
  melody = gr.Audio(source="upload", type="numpy", label="File",
264
  interactive=True, elem_id="melody-input")
265
  with gr.Row():
266
- duration = gr.Slider(label = "Duration", info = "(in seconds)", minimum = 1, maximum = 120, value = 10, interactive = True)
267
  with gr.Accordion("Advanced options", open = False):
268
  with gr.Row():
269
  topk = gr.Number(label="Top-k", info = "Number of tokens shortlisted", value = 250, interactive = True)
 
244
  with gr.Blocks() as interface:
245
  gr.Markdown(
246
  """
247
+ <h1 style="text-align: center;">Text-to-Music / Music-to-Music</h1>
248
+ <p style="text-align: center;">Generates up to 2 minutes of music freely, without account and without watermark that you can download</p>
249
  Derived from [MusicGen](https://github.com/facebookresearch/audiocraft),
250
  presented at: ["Simple and Controllable Music Generation"](https://huggingface.co/papers/2306.05284).
251
  MusicGen gets better results than other AIs like WaveFormer.
 
257
  with gr.Row():
258
  with gr.Column():
259
  with gr.Row():
260
+ text = gr.Text(label="Input Text", placeholder="Describe your music here", interactive=True, autofocus = True)
261
  with gr.Column():
262
  radio = gr.Radio(["file", "mic"], value="file",
263
  label="Condition on a melody (optional) File or Microphone")
264
  melody = gr.Audio(source="upload", type="numpy", label="File",
265
  interactive=True, elem_id="melody-input")
266
  with gr.Row():
267
+ duration = gr.Slider(label = "Duration", info = "(in seconds)", minimum = 1, maximum = 120, value = 30, interactive = True)
268
  with gr.Accordion("Advanced options", open = False):
269
  with gr.Row():
270
  topk = gr.Number(label="Top-k", info = "Number of tokens shortlisted", value = 250, interactive = True)