Skip to content

Commit 3ecc64e

Browse files
Copilotkarinassini
andcommitted
fix: correct string formatting in evaluation error message
Co-authored-by: karinassini <34751178+karinassini@users.noreply.github.com>
1 parent 71fdc71 commit 3ecc64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/whisper_fine_tuning/src/core/evaluation/evaluation_process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def get_text(sample):
3434
return sample["transcription"]
3535
else:
3636
raise ValueError(
37-
"Expected transcript column of either 'text', 'sentence', 'normalized_text' or 'transcript'. Got sample of "
38-
".join{sample.keys()}. Ensure a text column name is present in the dataset."
37+
f"Expected transcript column of either 'text', 'sentence', 'normalized_text' or 'transcript'. "
38+
f"Got sample with keys: {', '.join(sample.keys())}. Ensure a text column name is present in the dataset."
3939
)
4040

4141

0 commit comments

Comments
 (0)