Spaces:
Running
on
Zero
Running
on
Zero
roychao19477
commited on
Commit
·
c90ec4a
1
Parent(s):
b9afdac
Upload
Browse files
app.py
CHANGED
@@ -87,23 +87,16 @@ def enhance(filepath):
|
|
87 |
|
88 |
return "enhanced.wav"#, fig
|
89 |
|
90 |
-
demo = gr.Blocks()
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
inputs =
|
95 |
-
gr.Audio(label="Input Audio", type="filepath"),
|
96 |
-
gr.Checkbox(label="Apply Speech Enhancement", value=True),
|
97 |
-
],
|
98 |
outputs = [
|
99 |
gr.Audio(label="Output Audio", type="filepath"),
|
100 |
#gr.Plot(label="Spectrogram")
|
101 |
],
|
102 |
-
|
103 |
-
)
|
104 |
|
105 |
|
106 |
-
with demo:
|
107 |
-
gr.TabbedInterface([se_demo], ["Speech Enhancement Mamba"])
|
108 |
|
109 |
-
demo.launch()
|
|
|
87 |
|
88 |
return "enhanced.wav"#, fig
|
89 |
|
|
|
90 |
|
91 |
+
|
92 |
+
with gr.Blocks as demo:
|
93 |
+
inputs = gr.Audio(label="Input Audio", type="filepath"),
|
|
|
|
|
|
|
94 |
outputs = [
|
95 |
gr.Audio(label="Output Audio", type="filepath"),
|
96 |
#gr.Plot(label="Spectrogram")
|
97 |
],
|
98 |
+
btn.click(enhance, inputs=[inputs], outputs=outputs)
|
|
|
99 |
|
100 |
|
|
|
|
|
101 |
|
102 |
+
demo.queue().launch()
|