mrfakename commited on
Commit
14cc068
1 Parent(s): 528cc89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,5 +32,6 @@ with gr.Blocks() as demo:
32
  synth.click(gen, inputs=[piano_only, length], outputs=[txtout, fileout, audioout])
33
  with gr.Accordion("Samples", open=False):
34
  for i, audpath in enumerate(glob("*.wav")):
35
- gr.Audio(interactive=False, value=sf.read(audpath), label=f'Sample {i + 1}')
 
36
  demo.queue(api_open=False).launch(show_api=False)
 
32
  synth.click(gen, inputs=[piano_only, length], outputs=[txtout, fileout, audioout])
33
  with gr.Accordion("Samples", open=False):
34
  for i, audpath in enumerate(glob("*.wav")):
35
+ sr, dat = sf.read(audpath)
36
+ gr.Audio(interactive=False, value=(sr,dat,), label=f'Sample {i + 1}')
37
  demo.queue(api_open=False).launch(show_api=False)