Skip to content

Commit ed48458

Browse files
author
sanchit-gandhi
committed
fix
1 parent 76099f6 commit ed48458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

training/eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def wer(asr_model_name_or_path, prompts, audios, device, per_device_eval_batch_s
5050
normalizer = english_normalizer if hasattr(pred, "language") and pred["language"] == "english" else basic_normalizer
5151
norm_ref = normalizer(ref)
5252
if len(norm_ref) > 0:
53-
norm_pred = normalizer(pred)
53+
norm_pred = normalizer(pred["text"])
5454
normalized_predictions.append(norm_pred)
5555
normalized_references.append(norm_pred)
5656

0 commit comments

Comments
 (0)