Skip to content

Commit 6efe2ab

Browse files
Merge pull request #35 from lambda-feedback/text-preview-and-multiline-latex
Fixed formatting of result in evaluation function
2 parents 85e513b + f453db6 commit 6efe2ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

evaluation_function/evaluation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
def evaluation_function(response, answer, params, include_test_data=False) -> dict:
1010

1111
if params.get("text_prototype", False) is True:
12-
return preview_function(response, params)
12+
preview = preview_function(response, params)['preview']
13+
return {"is_correct": True, "response_latex": preview['latex'], "response_simplified": preview['sympy']}
1314

1415
if response.lower().startswith("benchmark"):
1516
arg = response.split()

0 commit comments

Comments
 (0)