Revert "Unview T"
Browse filesThis reverts commit dc0acc8419a894b07275432f5c6940b5ef9c81bf.
- README.md +1 -1
- app.py +1 -1
- src/display/utils.py +2 -1
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title: Secure
|
3 |
emoji: 🥇
|
4 |
colorFrom: green
|
5 |
colorTo: indigo
|
|
|
1 |
---
|
2 |
+
title: Secure Llm Leaderboard
|
3 |
emoji: 🥇
|
4 |
colorFrom: green
|
5 |
colorTo: indigo
|
app.py
CHANGED
@@ -72,7 +72,7 @@ def init_leaderboard(df):
|
|
72 |
col_count=(len(COLS), "fixed"),
|
73 |
value=df,
|
74 |
wrap=True,
|
75 |
-
column_widths=[None] * len(COLS)
|
76 |
type="pandas",
|
77 |
)
|
78 |
|
|
|
72 |
col_count=(len(COLS), "fixed"),
|
73 |
value=df,
|
74 |
wrap=True,
|
75 |
+
column_widths=[50] + [None] * (len(COLS) - 1),
|
76 |
type="pandas",
|
77 |
)
|
78 |
|
src/display/utils.py
CHANGED
@@ -30,6 +30,7 @@ auto_eval_column_dict = []
|
|
30 |
|
31 |
# Add model information columns
|
32 |
model_info_columns = [
|
|
|
33 |
("Model", "markdown", True, False, True),
|
34 |
("Security Score ⬆️", "number", True, False, False),
|
35 |
("Safetensors", "bool", True, False, False),
|
@@ -126,7 +127,7 @@ class Precision(Enum):
|
|
126 |
|
127 |
# Column selection
|
128 |
COLS = [
|
129 |
-
"Model", "Security Score ⬆️", "Safetensors", "Type", "Architecture",
|
130 |
"Weight Format", "Precision", "Hub License", "Hub ❤️", "#Params (B)",
|
131 |
"Available on Hub", "Model SHA"
|
132 |
]
|
|
|
30 |
|
31 |
# Add model information columns
|
32 |
model_info_columns = [
|
33 |
+
("T", "str", True, False, True), # name, type, displayed_by_default, hidden, never_hidden
|
34 |
("Model", "markdown", True, False, True),
|
35 |
("Security Score ⬆️", "number", True, False, False),
|
36 |
("Safetensors", "bool", True, False, False),
|
|
|
127 |
|
128 |
# Column selection
|
129 |
COLS = [
|
130 |
+
"T", "Model", "Security Score ⬆️", "Safetensors", "Type", "Architecture",
|
131 |
"Weight Format", "Precision", "Hub License", "Hub ❤️", "#Params (B)",
|
132 |
"Available on Hub", "Model SHA"
|
133 |
]
|