roychao19477 commited on
Commit
feda893
·
1 Parent(s): 6ecd7dd
Files changed (1) hide show
  1. app.py +14 -16
app.py CHANGED
@@ -88,21 +88,19 @@ def enhance(filepath):
88
 
89
 
90
 
91
- with gr.Blocks(theme="soft") as demo:
92
- gr.HTML("<h1><center>SEMamba</center></h1>")
93
- se_demo = gr.Interface(
94
- fn = enhance,
95
- inputs = [
96
- gr.Audio(label="Input Audio", type="filepath"),
97
- gr.Checkbox(label="Apply Speech Enhancement", value=True),
98
- ],
99
- outputs = [
100
- gr.Audio(label="Output Audio", type="filepath"),
101
- #gr.Plot(label="Spectrogram")
102
- ],
103
- title = "SEMamba",
104
- cache_examples=False,
105
- )
106
 
107
  if __name__ == "__main__":
108
- demo.launch()
 
88
 
89
 
90
 
91
+ se_demo = gr.Interface(
92
+ fn = enhance,
93
+ inputs = [
94
+ gr.Audio(label="Input Audio", type="filepath"),
95
+ gr.Checkbox(label="Apply Speech Enhancement", value=True),
96
+ ],
97
+ outputs = [
98
+ gr.Audio(label="Output Audio", type="filepath"),
99
+ #gr.Plot(label="Spectrogram")
100
+ ],
101
+ title = "SEMamba",
102
+ cache_examples=False,
103
+ )
 
 
104
 
105
  if __name__ == "__main__":
106
+ se_demo.launch()