Spaces:
Runtime error
Runtime error
Clémentine
commited on
Commit
•
26bbde7
1
Parent(s):
ca27c07
fixing display bug when importing missing tags
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -121,8 +121,8 @@ class EvalResult:
|
|
121 |
self.license = file_dict.get("license", "?")
|
122 |
self.likes = file_dict.get("likes", 0)
|
123 |
self.still_on_hub = file_dict["still_on_hub"]
|
124 |
-
self.
|
125 |
-
self.
|
126 |
|
127 |
|
128 |
def to_dict(self):
|
|
|
121 |
self.license = file_dict.get("license", "?")
|
122 |
self.likes = file_dict.get("likes", 0)
|
123 |
self.still_on_hub = file_dict["still_on_hub"]
|
124 |
+
self.tags = file_dict.get("tags", [])
|
125 |
+
self.flagged = any("flagged" in tag for tag in self.tags)
|
126 |
|
127 |
|
128 |
def to_dict(self):
|