nakas commited on
Commit
b69ba8b
·
1 Parent(s): d40afd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -317,7 +317,14 @@ def ui_batched(launch_kwargs):
317
  with gr.Row():
318
  submit = gr.Button("Generate")
319
  with gr.Column():
320
- output = [gr.Audio(file, label=f"Generated Music {i+1}") for i, file in enumerate(files)]
 
 
 
 
 
 
 
321
  submit.click(predict_batched, inputs=[text, melody],
322
  outputs=[output], batch=True, max_batch_size=MAX_BATCH_SIZE)
323
  radio.change(toggle_audio_src, radio, [melody], queue=False, show_progress=False)
 
317
  with gr.Row():
318
  submit = gr.Button("Generate")
319
  with gr.Column():
320
+ output=[
321
+ gr.Audio(type='filepath',label="Generated Music"),
322
+ gr.Audio(type='filepath',label="Vocal Music"),
323
+ gr.Audio(type='filepath',label="base Music"),
324
+ gr.Audio(type='filepath',label="drum Music"),
325
+ gr.Audio(type='filepath',label="other Music")
326
+ #gr.outputs.Audio(type='filepath')
327
+ ],
328
  submit.click(predict_batched, inputs=[text, melody],
329
  outputs=[output], batch=True, max_batch_size=MAX_BATCH_SIZE)
330
  radio.change(toggle_audio_src, radio, [melody], queue=False, show_progress=False)