Steveeeeeeen HF staff commited on
Commit
b293ec6
·
verified ·
1 Parent(s): bd81ec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def compute_wer_table(audio, text):
33
  for model in model_name:
34
  pipe = pipeline("automatic-speech-recognition", model=model_name[model])
35
  transcription = pipe(audio_input)['text']
36
- transcription = transcription.translate(remove_chars)
37
  trans.append(transcription)
38
  wer = wer_metric.compute(predictions=[transcription.upper()], references=[text.upper()])
39
  wer_scores.append(wer)
 
33
  for model in model_name:
34
  pipe = pipeline("automatic-speech-recognition", model=model_name[model])
35
  transcription = pipe(audio_input)['text']
36
+ # transcription = transcription.translate(remove_chars)
37
  trans.append(transcription)
38
  wer = wer_metric.compute(predictions=[transcription.upper()], references=[text.upper()])
39
  wer_scores.append(wer)