XufengDuan commited on
Commit
7aeddee
1 Parent(s): e7fdefd

update scripts

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +1 -1
src/leaderboard/read_evals.py CHANGED
@@ -147,7 +147,7 @@ class EvalResult:
147
  #self.weight_type = utils.WeightType[request.get("weight_type", "Original")]
148
  self.license = request.get("license", "?")
149
  self.likes = request.get("likes", 0)
150
- self.num_params = request.get("params", 0)
151
  self.date = request.get("submitted_time", "")
152
  # print(self.license)
153
  print('updated:', self)
 
147
  #self.weight_type = utils.WeightType[request.get("weight_type", "Original")]
148
  self.license = request.get("license", "?")
149
  self.likes = request.get("likes", 0)
150
+ self.num_params = int(float(request.get("params", "0").replace('B', '')))
151
  self.date = request.get("submitted_time", "")
152
  # print(self.license)
153
  print('updated:', self)