Zekun Wu commited on
Commit ·
89571c1
1
Parent(s): 90c9f9c
add
Browse files- util/evaluator.py +1 -1
util/evaluator.py
CHANGED
|
@@ -20,7 +20,7 @@ class evaluator:
|
|
| 20 |
return {k: {"Score": -1, "Justification": "Invalid input format"} for k in required_keys}
|
| 21 |
|
| 22 |
if "Score" not in score_data or not isinstance(score_data["Score"], (int, float)) or not (
|
| 23 |
-
0 <= score_data["Score"] <=
|
| 24 |
return {k: {"Score": -1, "Justification": "Invalid score value"} for k in required_keys}
|
| 25 |
|
| 26 |
if "Justification" not in score_data or not isinstance(score_data["Justification"], str) or not score_data[
|
|
|
|
| 20 |
return {k: {"Score": -1, "Justification": "Invalid input format"} for k in required_keys}
|
| 21 |
|
| 22 |
if "Score" not in score_data or not isinstance(score_data["Score"], (int, float)) or not (
|
| 23 |
+
0 <= score_data["Score"] <= 10):
|
| 24 |
return {k: {"Score": -1, "Justification": "Invalid score value"} for k in required_keys}
|
| 25 |
|
| 26 |
if "Justification" not in score_data or not isinstance(score_data["Justification"], str) or not score_data[
|