Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clémentine
commited on
Commit
•
e0b891a
1
Parent(s):
9e0f1e6
fix bug in metadata display
Browse files
src/display_models/get_model_metadata.py
CHANGED
@@ -82,18 +82,6 @@ def get_model_type(leaderboard_data: List[dict]):
|
|
82 |
):
|
83 |
request_file = tmp_request_file
|
84 |
|
85 |
-
if request_file == "":
|
86 |
-
model_data[AutoEvalColumn.model_type.name] = ""
|
87 |
-
model_data[AutoEvalColumn.model_type_symbol.name] = ""
|
88 |
-
continue
|
89 |
-
|
90 |
-
try:
|
91 |
-
with open(request_file, "r") as f:
|
92 |
-
request = json.load(f)
|
93 |
-
request["weight_type"] != "Original"
|
94 |
-
except Exception:
|
95 |
-
pass
|
96 |
-
|
97 |
try:
|
98 |
with open(request_file, "r") as f:
|
99 |
request = json.load(f)
|
|
|
82 |
):
|
83 |
request_file = tmp_request_file
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
try:
|
86 |
with open(request_file, "r") as f:
|
87 |
request = json.load(f)
|