Skip to content

Commit 53216d4

Browse files
Trying to fix bug with return value
1 parent 5d8ad0d commit 53216d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def evaluation_function(response, answer, params) -> dict:
3030
real_diff = abs(response - answer)
3131
allowed_diff = atol + rtol * abs(answer)
3232
allowed_diff += spacing(answer)
33-
is_correct = real_diff <= allowed_diff
33+
is_correct = bool(real_diff <= allowed_diff)
3434

3535
return {
3636
"is_correct": is_correct,

0 commit comments

Comments
 (0)