justest commited on
Commit
9916574
·
1 Parent(s): feef8b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,9 +26,9 @@ def speech_recognize(file):
26
  text_correction = text_correct_model(text)[0]
27
  cor_text, errors = text_correction['target'], text_correction['errors']
28
  print(f'[Text Correction] errors: {errors}')
29
- punc_text = punc_model.add_puncs(cor_text, device='cpu')[0]
30
 
31
- ret = text
32
  # ret += f'[ASR] {text}\n'
33
  # ret += f'[COR] {cor_text}\n'
34
  # ret += f'[PUN] {punc_text}'
 
26
  text_correction = text_correct_model(text)[0]
27
  cor_text, errors = text_correction['target'], text_correction['errors']
28
  print(f'[Text Correction] errors: {errors}')
29
+ # punc_text = punc_model.add_puncs(cor_text, device='cpu')[0]
30
 
31
+ ret = cor_text
32
  # ret += f'[ASR] {text}\n'
33
  # ret += f'[COR] {cor_text}\n'
34
  # ret += f'[PUN] {punc_text}'