Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clémentine
commited on
Commit
·
1349a17
1
Parent(s):
7f4ea04
fix none parsing in answers
Browse files
scorer.py
CHANGED
@@ -36,6 +36,9 @@ def question_scorer(
|
|
36 |
return True
|
37 |
except ValueError:
|
38 |
return False
|
|
|
|
|
|
|
39 |
|
40 |
# if gt is a number
|
41 |
if is_float(ground_truth):
|
|
|
36 |
return True
|
37 |
except ValueError:
|
38 |
return False
|
39 |
+
|
40 |
+
if model_answer is None:
|
41 |
+
model_answer = "None"
|
42 |
|
43 |
# if gt is a number
|
44 |
if is_float(ground_truth):
|