bandhav commited on
Commit
d6a90a5
1 Parent(s): 932f9eb
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -58,6 +58,8 @@ def waveformer(audio, label_choices):
58
  return fs, output.squeeze(0).squeeze(0).to(torch.short).numpy()
59
 
60
 
61
- label_checkbox = gr.CheckboxGroup(choices=TARGETS)
62
- demo = gr.Interface(fn=waveformer, inputs=['audio', label_checkbox], outputs="audio")
 
 
63
  demo.launch(show_error=True)
 
58
  return fs, output.squeeze(0).squeeze(0).to(torch.short).numpy()
59
 
60
 
61
+ input_audio = gr.Audio(label="Input audio")
62
+ label_checkbox = gr.CheckboxGroup(choices=TARGETS, label="Input target selection(s)")
63
+ output_audio = gr.Audio(label="Output audio")
64
+ demo = gr.Interface(fn=waveformer, inputs=[input_audio, label_checkbox], outputs=output_audio)
65
  demo.launch(show_error=True)