hage2000 commited on
Commit
c3779ef
·
verified ·
1 Parent(s): 00ea16a

Update execute.py

Browse files

result dict ['results'] -> ['result'], to stay consistent with code_eval

Files changed (1) hide show
  1. execute.py +1 -1
execute.py CHANGED
@@ -50,7 +50,7 @@ def check_correctness(program, test_inputs, test_outputs, timeout, task_id, comp
50
  return dict(
51
  task_id=task_id,
52
  passed=all(result.get("status") == "passed" for result in results),
53
- results=list(results),
54
  completion_id=completion_id,
55
  program=program,
56
  )
 
50
  return dict(
51
  task_id=task_id,
52
  passed=all(result.get("status") == "passed" for result in results),
53
+ result=list(results),
54
  completion_id=completion_id,
55
  program=program,
56
  )