KPatrick commited on
Commit
d362f82
1 Parent(s): 46f1896

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('wenetspeech', 'zh', 16000, None, None, file, 'cpu')
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}')