alibabasglab commited on
Commit
fef598a
·
verified ·
1 Parent(s): 0608925

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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[0] == '16 kHz':
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
- ["16 kHz", "48 kHz"], value=["16 kHz"], multiselect=False, label="Sampling Rate", info="Choose the sampling rate for your output."
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 = [