Spaces:
Runtime error
Runtime error
Richard Fan
commited on
Commit
•
ef96ac0
1
Parent(s):
6ca7d2e
fixes to ranking
Browse files- relevancy.py +1 -1
relevancy.py
CHANGED
@@ -132,7 +132,7 @@ def generate_relevance_score(
|
|
132 |
print(f"Post-processing took {time.time() - process_start:.2f}s")
|
133 |
|
134 |
if sorting:
|
135 |
-
ans_data = sorted(ans_data, key=lambda x: x["Relevancy score"], reverse=True)
|
136 |
|
137 |
return ans_data, hallucination
|
138 |
|
|
|
132 |
print(f"Post-processing took {time.time() - process_start:.2f}s")
|
133 |
|
134 |
if sorting:
|
135 |
+
ans_data = sorted(ans_data, key=lambda x: int(x["Relevancy score"]), reverse=True)
|
136 |
|
137 |
return ans_data, hallucination
|
138 |
|