Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
from clearvoice import ClearVoice
|
5 |
|
6 |
def fn_clearvoice_se(input_wav, sr):
|
7 |
-
if sr
|
8 |
myClearVoice = ClearVoice(task='speech_enhancement', model_names=['FRCRN_SE_16K'])
|
9 |
fs = 16000
|
10 |
else:
|
@@ -42,7 +42,7 @@ se_demo = gr.Interface(
|
|
42 |
inputs = [
|
43 |
gr.Audio(label="Input Audio", type="filepath"),
|
44 |
gr.Dropdown(
|
45 |
-
["
|
46 |
),
|
47 |
],
|
48 |
outputs = [
|
|
|
4 |
from clearvoice import ClearVoice
|
5 |
|
6 |
def fn_clearvoice_se(input_wav, sr):
|
7 |
+
if sr == "16000":
|
8 |
myClearVoice = ClearVoice(task='speech_enhancement', model_names=['FRCRN_SE_16K'])
|
9 |
fs = 16000
|
10 |
else:
|
|
|
42 |
inputs = [
|
43 |
gr.Audio(label="Input Audio", type="filepath"),
|
44 |
gr.Dropdown(
|
45 |
+
["16000", "48000"], value=["16000"], multiselect=False, label="Sampling Rate", info="Choose the sampling rate for your output."
|
46 |
),
|
47 |
],
|
48 |
outputs = [
|