Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/leaderboard/read_evals.py
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -104,8 +104,11 @@ class EvalResult:
|
|
104 |
self.likes = request.get("likes", 0)
|
105 |
self.num_params = request.get("params", 0)
|
106 |
self.date = request.get("submitted_time", "")
|
|
|
|
|
107 |
except Exception:
|
108 |
-
|
|
|
109 |
|
110 |
def to_dict(self):
|
111 |
"""Converts the Eval Result to a dict compatible with our dataframe display"""
|
|
|
104 |
self.likes = request.get("likes", 0)
|
105 |
self.num_params = request.get("params", 0)
|
106 |
self.date = request.get("submitted_time", "")
|
107 |
+
self.architecture = request.get("architectures", "Unknown") # delete later
|
108 |
+
self.status = request.get("status", "FAILED")
|
109 |
except Exception:
|
110 |
+
self.status = "FAILED"
|
111 |
+
print(f'Could not find request file for {self.org}/{self.model} with "precision:{self.precision.value.name},model_type:{self.model_type}",license:{self.license},status:{self.status}')
|
112 |
|
113 |
def to_dict(self):
|
114 |
"""Converts the Eval Result to a dict compatible with our dataframe display"""
|