Clémentine commited on
Commit
26bbde7
1 Parent(s): ca27c07

fixing display bug when importing missing tags

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +2 -2
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.flagged = any("flagged" in tag for tag in file_dict["tags"])
125
- self.tags = file_dict["tags"]
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):