Spaces:
Runtime error
Runtime error
Labels
Browse files
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 |
-
|
62 |
-
|
|
|
|
|
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)
|