XufengDuan commited on
Commit
0d9757a
·
1 Parent(s): e29f2bd

update scripts

Browse files
Files changed (1) hide show
  1. src/leaderboard/read_evals.py +2 -2
src/leaderboard/read_evals.py CHANGED
@@ -144,12 +144,12 @@ class EvalResult:
144
  request = json.load(f)
145
  print(request)
146
  self.model_type = utils.ModelType.from_str(request.get("model_type", ""))
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
  except FileNotFoundError:
154
  print(f"Could not find request file for {self.org}/{self.model}")
155
  except json.JSONDecodeError:
 
144
  request = json.load(f)
145
  print(request)
146
  self.model_type = utils.ModelType.from_str(request.get("model_type", ""))
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
  except FileNotFoundError:
154
  print(f"Could not find request file for {self.org}/{self.model}")
155
  except json.JSONDecodeError: