Spaces:
Running
Running
XufengDuan
commited on
Commit
•
62e965e
1
Parent(s):
f78bd7e
update scripts
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -135,12 +135,14 @@ class EvalResult:
|
|
135 |
try:
|
136 |
with open(request_file, "r") as f:
|
137 |
request = json.load(f)
|
|
|
138 |
self.model_type = utils.ModelType.from_str(request.get("model_type", ""))
|
139 |
self.weight_type = utils.WeightType[request.get("weight_type", "Original")]
|
140 |
self.license = request.get("license", "?")
|
141 |
self.likes = request.get("likes", 0)
|
142 |
self.num_params = request.get("params", 0)
|
143 |
self.date = request.get("submitted_time", "")
|
|
|
144 |
except FileNotFoundError:
|
145 |
print(f"Could not find request file for {self.org}/{self.model}")
|
146 |
except json.JSONDecodeError:
|
|
|
135 |
try:
|
136 |
with open(request_file, "r") as f:
|
137 |
request = json.load(f)
|
138 |
+
print(request)
|
139 |
self.model_type = utils.ModelType.from_str(request.get("model_type", ""))
|
140 |
self.weight_type = utils.WeightType[request.get("weight_type", "Original")]
|
141 |
self.license = request.get("license", "?")
|
142 |
self.likes = request.get("likes", 0)
|
143 |
self.num_params = request.get("params", 0)
|
144 |
self.date = request.get("submitted_time", "")
|
145 |
+
print(self.license)
|
146 |
except FileNotFoundError:
|
147 |
print(f"Could not find request file for {self.org}/{self.model}")
|
148 |
except json.JSONDecodeError:
|