Spaces:
Sleeping
Sleeping
Clémentine
commited on
Commit
•
35763fc
1
Parent(s):
a79408c
corrected display of symbols
Browse files
src/auto_leaderboard/model_metadata_type.py
CHANGED
@@ -556,8 +556,8 @@ def get_model_type(leaderboard_data: List[dict]):
|
|
556 |
request_file = glob.glob(request_file)
|
557 |
|
558 |
if len(request_file) == 0:
|
559 |
-
model_data[AutoEvalColumn.model_type.name] = "
|
560 |
-
model_data[AutoEvalColumn.model_type_symbol.name] = "
|
561 |
continue
|
562 |
|
563 |
request_file = request_file[0]
|
@@ -576,5 +576,5 @@ def get_model_type(leaderboard_data: List[dict]):
|
|
576 |
model_data[AutoEvalColumn.model_type.name] = model_type
|
577 |
model_data[AutoEvalColumn.model_type_symbol.name] = model_type_symbols[model_type] + ("🔺" if is_delta else "")
|
578 |
except Exception:
|
579 |
-
model_data[AutoEvalColumn.model_type.name] = "Unknown"
|
580 |
-
model_data[AutoEvalColumn.model_type_symbol.name] = "
|
|
|
556 |
request_file = glob.glob(request_file)
|
557 |
|
558 |
if len(request_file) == 0:
|
559 |
+
model_data[AutoEvalColumn.model_type.name] = ""
|
560 |
+
model_data[AutoEvalColumn.model_type_symbol.name] = ""
|
561 |
continue
|
562 |
|
563 |
request_file = request_file[0]
|
|
|
576 |
model_data[AutoEvalColumn.model_type.name] = model_type
|
577 |
model_data[AutoEvalColumn.model_type_symbol.name] = model_type_symbols[model_type] + ("🔺" if is_delta else "")
|
578 |
except Exception:
|
579 |
+
model_data[AutoEvalColumn.model_type.name] = "Unknown, add type to request file!"
|
580 |
+
model_data[AutoEvalColumn.model_type_symbol.name] = "?"
|