Spaces:
Runtime error
Runtime error
m00913563 commited on
Commit ·
9be4658
1
Parent(s): a648296
fix scoring
Browse files- evaluator.py +3 -9
evaluator.py
CHANGED
|
@@ -207,15 +207,9 @@ def evaluate_interview(competences: list[str], transcript: list):
|
|
| 207 |
|
| 208 |
def aggregate_scores(b: list[int], t: list[int]):
|
| 209 |
total_score = 0
|
| 210 |
-
|
| 211 |
-
for i in range(len(
|
| 212 |
-
score =
|
| 213 |
-
if t[i] != -1:
|
| 214 |
-
score = (b[i] + t[i]) / 2
|
| 215 |
-
|
| 216 |
-
else:
|
| 217 |
-
score = b[i]
|
| 218 |
-
|
| 219 |
total_score += score
|
| 220 |
|
| 221 |
|
|
|
|
| 207 |
|
| 208 |
def aggregate_scores(b: list[int], t: list[int]):
|
| 209 |
total_score = 0
|
| 210 |
+
alls = b + t
|
| 211 |
+
for i in range(len(alls)):
|
| 212 |
+
score = alls[i]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
total_score += score
|
| 214 |
|
| 215 |
|