Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def speech_recognize(file):
|
|
20 |
|
21 |
print(f'[Audio Input] shape: {data.shape}, dtype: {data.dtype}, file: {file}')
|
22 |
# text = asr_model.speech_recognize(file, device='cpu')
|
23 |
-
text = asr_executor(
|
24 |
text_correction = text_correct_model(text)[0]
|
25 |
cor_text, errors = text_correction['target'], text_correction['errors']
|
26 |
print(f'[Text Correction] errors: {errors}')
|
|
|
20 |
|
21 |
print(f'[Audio Input] shape: {data.shape}, dtype: {data.dtype}, file: {file}')
|
22 |
# text = asr_model.speech_recognize(file, device='cpu')
|
23 |
+
text = asr_executor(file)
|
24 |
text_correction = text_correct_model(text)[0]
|
25 |
cor_text, errors = text_correction['target'], text_correction['errors']
|
26 |
print(f'[Text Correction] errors: {errors}')
|