Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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}'
|