mrfakename commited on
Commit
461a845
·
verified ·
1 Parent(s): 1c0e7d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,6 +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
- y, sr = librosa.load(filename)
36
  gr.Audio(interactive=False, value=(y,sr,), label=f'Sample {i + 1}')
37
  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
+ y, sr = librosa.load(audpath)
36
  gr.Audio(interactive=False, value=(y,sr,), label=f'Sample {i + 1}')
37
  demo.queue(api_open=False).launch(show_api=False)