Spaces:
Runtime error
Runtime error
revert to 0
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -29,7 +29,7 @@ class EvalResult:
|
|
29 |
license: str = "?"
|
30 |
lang: str = "?"
|
31 |
likes: int = 0
|
32 |
-
num_params: int =
|
33 |
date: str = "" # submission date of request file
|
34 |
still_on_hub: bool = False
|
35 |
n_shot: NShotType = NShotType.n0
|
@@ -119,7 +119,7 @@ class EvalResult:
|
|
119 |
try:
|
120 |
meta=metadata[self.full_model]
|
121 |
self.model_type = ModelType.from_str(meta.get("type", "?"))
|
122 |
-
self.num_params = meta.get("params",
|
123 |
self.license = meta.get("license", "?")
|
124 |
self.lang = meta.get("lang", "?")
|
125 |
#TODO desc name
|
|
|
29 |
license: str = "?"
|
30 |
lang: str = "?"
|
31 |
likes: int = 0
|
32 |
+
num_params: int = 0
|
33 |
date: str = "" # submission date of request file
|
34 |
still_on_hub: bool = False
|
35 |
n_shot: NShotType = NShotType.n0
|
|
|
119 |
try:
|
120 |
meta=metadata[self.full_model]
|
121 |
self.model_type = ModelType.from_str(meta.get("type", "?"))
|
122 |
+
self.num_params = meta.get("params", 0)
|
123 |
self.license = meta.get("license", "?")
|
124 |
self.lang = meta.get("lang", "?")
|
125 |
#TODO desc name
|