marquesafonso commited on
Commit
7e37d2b
·
verified ·
1 Parent(s): ce8a6a0

update text in ui to account for change to enhancement

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -6,13 +6,13 @@ model = separator.from_hparams(source="speechbrain/sepformer-whamr-enhancement",
6
 
7
  def speechbrain(aud):
8
  est_sources = model.separate_file(path=aud)
9
- torchaudio.save("source1hat.wav", est_sources[:, :, 0].detach().cpu(), 8000)
10
- return "source1hat.wav"
11
 
12
 
13
- title = "Speech Seperation"
14
- description = "Gradio demo for Speech Seperation by SpeechBrain. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
15
- article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2010.13154' target='_blank'>Attention is All You Need in Speech Separation</a> | <a href='https://github.com/speechbrain/speechbrain/tree/develop/recipes/WSJ0Mix/separation' '_blank'>Github Repo</a></p>"
16
  examples = [
17
  ['samples_audio_samples_test_mixture.wav']
18
  ]
 
6
 
7
  def speechbrain(aud):
8
  est_sources = model.separate_file(path=aud)
9
+ torchaudio.save("clean_audio_file.wav", est_sources[:, :, 0].detach().cpu(), 8000)
10
+ return "clean_audio_file.wav"
11
 
12
 
13
+ title = "Speech Enhancement"
14
+ description = "Gradio demo for Speech Enhancement by SpeechBrain. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
15
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2010.13154' target='_blank'>Attention is All You Need in Speech Separation</a> | <a href='https://github.com/speechbrain/speechbrain/tree/develop/templates/enhancement' '_blank'>Github Repo</a></p>"
16
  examples = [
17
  ['samples_audio_samples_test_mixture.wav']
18
  ]