alibabasglab commited on
Commit
7c1bd00
·
verified ·
1 Parent(s): 67b839e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -30,7 +30,7 @@ sr_demo = gr.Interface(
30
  fn=fn_clearvoice_sr,
31
  inputs = [
32
  gr.Audio(label="Input Audio", type="filepath"),
33
- gr.Checkbox(["Apply Speech Enhancement"], label="Apply Speech Enhancement"),
34
  ],
35
  outputs = [
36
  gr.Audio(label="Output Audio", type="filepath"),
@@ -41,10 +41,10 @@ sr_demo = gr.Interface(
41
  article = ("<p style='text-align: center'><a href='https://arxiv.org/abs/2206.07293' target='_blank'>FRCRN: Boosting Feature Representation Using Frequency Recurrence for Monaural Speech Enhancement</a> </p>"
42
  "<p style='text-align: center'><a href='https://arxiv.org/abs/2312.11825' target='_blank'>MossFormer2: Combining Transformer and RNN-Free Recurrent Network for Enhanced Time-Domain Monaural Speech Separation</a> </p>"),
43
  examples = [
44
- ["examples/mandarin_speech_16kHz.wav", "16000 Hz"],
45
- ["examples/LJSpeech-001-0001-22k.wav", "22050 Hz"],
46
- ["examples/LibriTTS_986_129388_24k.wav", "24000 Hz"],
47
- ["examples/english_speech_48kHz.wav", "48000 Hz"],
48
  ],
49
  cache_examples = True,
50
  )
 
30
  fn=fn_clearvoice_sr,
31
  inputs = [
32
  gr.Audio(label="Input Audio", type="filepath"),
33
+ gr.Checkbox(label="Apply Speech Enhancement", value=True),
34
  ],
35
  outputs = [
36
  gr.Audio(label="Output Audio", type="filepath"),
 
41
  article = ("<p style='text-align: center'><a href='https://arxiv.org/abs/2206.07293' target='_blank'>FRCRN: Boosting Feature Representation Using Frequency Recurrence for Monaural Speech Enhancement</a> </p>"
42
  "<p style='text-align: center'><a href='https://arxiv.org/abs/2312.11825' target='_blank'>MossFormer2: Combining Transformer and RNN-Free Recurrent Network for Enhanced Time-Domain Monaural Speech Separation</a> </p>"),
43
  examples = [
44
+ ["examples/mandarin_speech_16kHz.wav", True],
45
+ ["examples/LJSpeech-001-0001-22k.wav", True],
46
+ ["examples/LibriTTS_986_129388_24k.wav", True],
47
+ ["examples/english_speech_48kHz.wav", True],
48
  ],
49
  cache_examples = True,
50
  )