Spaces:
Running
Running
src/leaderboard/read_evals.py
CHANGED
@@ -98,6 +98,7 @@ class EvalResult:
|
|
98 |
try:
|
99 |
with open(request_file, "r") as f:
|
100 |
request = json.load(f)
|
|
|
101 |
self.model_type = ModelType.from_str(request.get("model_type", ""))
|
102 |
self.weight_type = WeightType[request.get("weight_type", "Original")]
|
103 |
self.license = request.get("license", "?")
|
@@ -141,12 +142,14 @@ def get_request_file_for_model(requests_path, model_name, precision):
|
|
141 |
requests_path,
|
142 |
f"{model_name}_eval_request_*.json",
|
143 |
)
|
|
|
144 |
request_files = glob.glob(request_files)
|
145 |
-
|
146 |
# Select correct request file (precision)
|
147 |
request_file = ""
|
148 |
request_files = sorted(request_files, reverse=True)
|
149 |
for tmp_request_file in request_files:
|
|
|
150 |
with open(tmp_request_file, "r") as f:
|
151 |
req_content = json.load(f)
|
152 |
if (
|
|
|
98 |
try:
|
99 |
with open(request_file, "r") as f:
|
100 |
request = json.load(f)
|
101 |
+
print(request)
|
102 |
self.model_type = ModelType.from_str(request.get("model_type", ""))
|
103 |
self.weight_type = WeightType[request.get("weight_type", "Original")]
|
104 |
self.license = request.get("license", "?")
|
|
|
142 |
requests_path,
|
143 |
f"{model_name}_eval_request_*.json",
|
144 |
)
|
145 |
+
print(request_files)
|
146 |
request_files = glob.glob(request_files)
|
147 |
+
print(request_files)
|
148 |
# Select correct request file (precision)
|
149 |
request_file = ""
|
150 |
request_files = sorted(request_files, reverse=True)
|
151 |
for tmp_request_file in request_files:
|
152 |
+
print(tmp_request_file)
|
153 |
with open(tmp_request_file, "r") as f:
|
154 |
req_content = json.load(f)
|
155 |
if (
|