Skip to content

Commit

Permalink
p
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan committed May 29, 2024
1 parent e9d189a commit 667c712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions llm_eval/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def post_process_output(self, prompt, output):
output = output[len(prompt)-1:]
pattern = re.compile(r'\{\s*"(.+?)"\s*:\s*"(.+?)"\s*\}')
matches = re.findall(pattern, output)
last_match = None
if matches:
last_match = matches[-1]
return {last_match[0]: last_match[1]} if last_match else output
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "llm-eval"
version = "0.5.13"
version = "0.5.14"
authors = [
{name = "Jonathan Eisenzopf", email = "[email protected]"},
]
Expand Down

0 comments on commit 667c712

Please sign in to comment.