Skip to content

Commit

Permalink
fix-lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexand Zamiralov committed Nov 18, 2024
1 parent 6222186 commit 750389a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions turbo_alignment/metrics/exact_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def _parse_function_with_arguments(self, inputs: InferenceChatDataset | list[lis

@staticmethod
def _load_json(data):
data = data.replace('<|eot_id|>', '')
try:
return json.loads(data)
except json.JSONDecodeError as e:
Expand Down

0 comments on commit 750389a

Please sign in to comment.