younver commited on
Commit
89fe983
1 Parent(s): 2dd8e14

fix: type parameter of gradio audio object

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,10 +10,10 @@ def speechbrain(aud):
10
  torchaudio.save("source2hat.wav", est_sources[:, :, 1].detach().cpu(), 8000)
11
  return "source1hat.wav", "source2hat.wav"
12
 
13
- inputs = gr.inputs.Audio(label="Input Audio", type="file")
14
  outputs = [
15
- gr.outputs.Audio(label="Output Audio One", type="file"),
16
- gr.outputs.Audio(label="Output Audio Two", type="file")
17
  ]
18
 
19
  title = "Speech Seperation"
 
10
  torchaudio.save("source2hat.wav", est_sources[:, :, 1].detach().cpu(), 8000)
11
  return "source1hat.wav", "source2hat.wav"
12
 
13
+ inputs = gr.inputs.Audio(label="Input Audio", type="filepath")type
14
  outputs = [
15
+ gr.outputs.Audio(label="Output Audio One", type="filepath"),
16
+ gr.outputs.Audio(label="Output Audio Two", type="filepath")
17
  ]
18
 
19
  title = "Speech Seperation"