alibabasglab commited on
Commit
3e28721
·
verified ·
1 Parent(s): e97dc57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import os
7
 
8
  @spaces.GPU
9
  def fn_clearvoice_se(input_wav, sr):
10
- if sr == "16000":
11
  myClearVoice = ClearVoice(task='speech_enhancement', model_names=['FRCRN_SE_16K'])
12
  fs = 16000
13
  else:
@@ -70,7 +70,7 @@ se_demo = gr.Interface(
70
  inputs = [
71
  gr.Audio(label="Input Audio", type="filepath"),
72
  gr.Dropdown(
73
- ["16000", "48000"], value=["16000"], multiselect=False, label="Sampling Rate", info="Choose the sampling rate for your output."
74
  ),
75
  ],
76
  outputs = [
 
7
 
8
  @spaces.GPU
9
  def fn_clearvoice_se(input_wav, sr):
10
+ if sr == "16000 Hz":
11
  myClearVoice = ClearVoice(task='speech_enhancement', model_names=['FRCRN_SE_16K'])
12
  fs = 16000
13
  else:
 
70
  inputs = [
71
  gr.Audio(label="Input Audio", type="filepath"),
72
  gr.Dropdown(
73
+ ["16000 Hz", "48000 Hz"], value="16000 Hz", multiselect=False, info="Choose a sampling rate for your output."
74
  ),
75
  ],
76
  outputs = [