Update utils/__init__.py
Browse files- utils/__init__.py +1 -1
utils/__init__.py
CHANGED
@@ -23,7 +23,7 @@ def average_text(text, model, judges):
|
|
23 |
p = {}
|
24 |
for dicts in d:
|
25 |
if dicts["label"] in judges:
|
26 |
-
p[dicts["label"]] =
|
27 |
p = normaliz_dict(p)
|
28 |
new_res.append(p)
|
29 |
|
|
|
23 |
p = {}
|
24 |
for dicts in d:
|
25 |
if dicts["label"] in judges:
|
26 |
+
p[dicts["label"]] = dicts["score"]
|
27 |
p = normaliz_dict(p)
|
28 |
new_res.append(p)
|
29 |
|