jjkim commited on
Commit
ae5996d
·
1 Parent(s): a41567d
Files changed (1) hide show
  1. code_eval.py +1 -1
code_eval.py CHANGED
@@ -189,7 +189,7 @@ class CodeEval(evaluate.Metric):
189
  for r in ref:
190
  assert isinstance(r, str)
191
  test = Template(ref_template).safe_substitute(ref_key=r)
192
- test = Template(test).safe_substitute(prediction=p)
193
 
194
  test_program = body + "\n" + test
195
  args = (test_program, timeout, tid, pid)
 
189
  for r in ref:
190
  assert isinstance(r, str)
191
  test = Template(ref_template).safe_substitute(ref_key=r)
192
+ test = Template(test).safe_substitute(reference=p)
193
 
194
  test_program = body + "\n" + test
195
  args = (test_program, timeout, tid, pid)