marquesafonso commited on
Commit
6ec9b2f
·
1 Parent(s): 4cc54d7

fix audio component

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def extract_waveform_animation(audio_file, duration):
43
  iface = gr.Interface(
44
  fn=extract_waveform_animation,
45
  inputs=[
46
- gr.Audio(source="upload", type="file"),
47
  gr.Number(label="Duration (seconds)", value=5)
48
  ],
49
  outputs=gr.Image(type="file", format="gif"),
 
43
  iface = gr.Interface(
44
  fn=extract_waveform_animation,
45
  inputs=[
46
+ gr.Audio(type="filepath"),
47
  gr.Number(label="Duration (seconds)", value=5)
48
  ],
49
  outputs=gr.Image(type="file", format="gif"),