Spaces:
Running
on
Zero
Running
on
Zero
root
commited on
Commit
·
6dd8635
1
Parent(s):
28a5503
fix bug
Browse files
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',
|
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):
|