Spaces:
Running
Running
Update app.py
Browse files
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)
|