Spaces:
Running
on
Zero
Running
on
Zero
roychao19477
commited on
Commit
·
d402093
1
Parent(s):
bb56b46
Upload
Browse files
app.py
CHANGED
@@ -89,14 +89,21 @@ def enhance(filepath):
|
|
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 |
if __name__ == "__main__":
|
102 |
-
demo.
|
|
|
89 |
|
90 |
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
+
with gr.Blocks(theme="soft") as demo:
|
94 |
+
se_demo = gr.Interface(
|
95 |
+
fn = enhance,
|
96 |
+
inputs = [
|
97 |
+
gr.Audio(label="Input Audio", type="filepath"),
|
98 |
+
gr.Checkbox(label="Apply Speech Enhancement", value=True),
|
99 |
+
],
|
100 |
+
outputs = [
|
101 |
+
gr.Audio(label="Output Audio", type="filepath"),
|
102 |
+
#gr.Plot(label="Spectrogram")
|
103 |
+
],
|
104 |
+
title = "SEMamba",
|
105 |
+
cache_examples=False
|
106 |
+
)
|
107 |
|
108 |
if __name__ == "__main__":
|
109 |
+
demo.launch()
|