Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
parler-tts
Commits
ed484586
Commit
ed484586
authored
May 22, 2024
by
sanchit-gandhi
Browse files
fix
parent
76099f6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
training/eval.py
training/eval.py
+1
-1
No files found.
training/eval.py
View file @
ed484586
...
...
@@ -50,7 +50,7 @@ def wer(asr_model_name_or_path, prompts, audios, device, per_device_eval_batch_s
normalizer
=
english_normalizer
if
hasattr
(
pred
,
"language"
)
and
pred
[
"language"
]
==
"english"
else
basic_normalizer
norm_ref
=
normalizer
(
ref
)
if
len
(
norm_ref
)
>
0
:
norm_pred
=
normalizer
(
pred
)
norm_pred
=
normalizer
(
pred
[
"text"
]
)
normalized_predictions
.
append
(
norm_pred
)
normalized_references
.
append
(
norm_pred
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment