Skip to content

Conversation

Copy link

Copilot AI commented Nov 3, 2025

Fixes a syntax error in evaluation_process.py where .join{sample.keys()} would fail at runtime.

Changes

  • Corrected malformed string concatenation to use f-string with proper join() syntax
  • Improved error message clarity

Before:

raise ValueError(
    "Expected transcript column of either 'text', 'sentence', 'normalized_text' or 'transcript'. Got sample of "
    ".join{sample.keys()}. Ensure a text column name is present in the dataset."
)

After:

raise ValueError(
    f"Expected transcript column of either 'text', 'sentence', 'normalized_text' or 'transcript'. "
    f"Got sample with keys: {', '.join(sample.keys())}. Ensure a text column name is present in the dataset."
)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Address feedback on fine tuning feature Fix invalid string formatting syntax in evaluation error message Nov 3, 2025
Copilot AI requested a review from karinassini November 3, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants