Spaces:
Running
Running
Steven Zheng
commited on
Commit
·
0308d9e
1
Parent(s):
f7d8549
modified transcription
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def compute_wer_table(audio, text):
|
|
31 |
for model in model_name:
|
32 |
pipe = pipeline("automatic-speech-recognition", model=model_name[model])
|
33 |
transcription = pipe(audio_input)['text']
|
34 |
-
transcription = transcription.replace(",", "").replace(".", "")
|
35 |
trans.append(transcription)
|
36 |
wer = wer_metric.compute(predictions=[transcription.upper()], references=[text.upper()])
|
37 |
wer_scores.append(wer)
|
|
|
31 |
for model in model_name:
|
32 |
pipe = pipeline("automatic-speech-recognition", model=model_name[model])
|
33 |
transcription = pipe(audio_input)['text']
|
34 |
+
# transcription = transcription.replace(",", "").replace(".", "")
|
35 |
trans.append(transcription)
|
36 |
wer = wer_metric.compute(predictions=[transcription.upper()], references=[text.upper()])
|
37 |
wer_scores.append(wer)
|