Spaces:
Running
Running
Update evaluation/evaluator.py
Browse files- evaluation/evaluator.py +3 -4
evaluation/evaluator.py
CHANGED
@@ -26,10 +26,9 @@ def fix_ans(answer):
|
|
26 |
def parse_answer(answer):
|
27 |
|
28 |
if len(answer) == 1:
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
return ans, 'number'
|
33 |
try:
|
34 |
ans = json.loads(fix_ans(answer[0]))
|
35 |
return [ans], 'json'
|
|
|
26 |
def parse_answer(answer):
|
27 |
|
28 |
if len(answer) == 1:
|
29 |
+
ans, is_num = fix_number(answer[0])
|
30 |
+
if is_num:
|
31 |
+
return ans, 'number'
|
|
|
32 |
try:
|
33 |
ans = json.loads(fix_ans(answer[0]))
|
34 |
return [ans], 'json'
|