telegram191 commited on
Commit
bc53b0f
·
verified ·
1 Parent(s): 8be5e63

Fix Gradio Audio init: remove unsupported min_length

Browse files
Files changed (1) hide show
  1. demos/melodyflow_app.py +2 -2
demos/melodyflow_app.py CHANGED
@@ -258,7 +258,7 @@ def ui_local(launch_kwargs):
258
  with gr.Row():
259
  text = gr.Text(label="Input Text", interactive=True)
260
  melody = gr.Audio(sources=["upload", "microphone"], type="filepath", label="File or Microphone",
261
- interactive=True, elem_id="melody-input", min_length=1)
262
  with gr.Row():
263
  submit = gr.Button("Submit")
264
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
@@ -378,7 +378,7 @@ def ui_hf(launch_kwargs):
378
  with gr.Row():
379
  text = gr.Text(label="Input Text", interactive=True)
380
  melody = gr.Audio(sources=["upload", "microphone"], type="filepath", label="File or Microphone",
381
- interactive=True, elem_id="melody-input", min_length=1)
382
  with gr.Row():
383
  submit = gr.Button("Submit")
384
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
 
258
  with gr.Row():
259
  text = gr.Text(label="Input Text", interactive=True)
260
  melody = gr.Audio(sources=["upload", "microphone"], type="filepath", label="File or Microphone",
261
+ interactive=True, elem_id="melody-input")
262
  with gr.Row():
263
  submit = gr.Button("Submit")
264
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.
 
378
  with gr.Row():
379
  text = gr.Text(label="Input Text", interactive=True)
380
  melody = gr.Audio(sources=["upload", "microphone"], type="filepath", label="File or Microphone",
381
+ interactive=True, elem_id="melody-input")
382
  with gr.Row():
383
  submit = gr.Button("Submit")
384
  # Adapted from https://github.com/rkfg/audiocraft/blob/long/app.py, MIT license.