root commited on
Commit
6dd8635
·
1 Parent(s): 28a5503
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -432,7 +432,7 @@ def get_example_input():
432
  prefix, suffix = problem['prompt'], problem['suffix']
433
  test_case = problem['test']
434
  test_case = test_case.replace('def check(candidate):', 'def run_test():')
435
- test_case = test_case.replace('candidate', test_case['entry_point'])
436
  return prefix, '', suffix, test_case, task_id, ''
437
 
438
  def check_result(task_id, completion):
 
432
  prefix, suffix = problem['prompt'], problem['suffix']
433
  test_case = problem['test']
434
  test_case = test_case.replace('def check(candidate):', 'def run_test():')
435
+ test_case = test_case.replace('candidate', problem['entry_point'])
436
  return prefix, '', suffix, test_case, task_id, ''
437
 
438
  def check_result(task_id, completion):