Spaces:
Sleeping
Sleeping
Update execute.py
Browse filesresult dict ['results'] -> ['result'], to stay consistent with code_eval
- 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 |
-
|
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 |
)
|