Spaces:
Running
Running
Commit
·
2f61456
1
Parent(s):
f5894fd
add
Browse files- app.py +1 -1
- src/display/css_html_js.py +18 -0
- src/leaderboard/read_evals.py +1 -1
app.py
CHANGED
@@ -62,7 +62,7 @@ def init_leaderboard(dataframe):
|
|
62 |
if dataframe is None or dataframe.empty:
|
63 |
raise ValueError("Leaderboard DataFrame is empty or None.")
|
64 |
|
65 |
-
|
66 |
num_cols = dataframe.select_dtypes(include=['number']).columns
|
67 |
styler = dataframe.style.format({col: "{:.1f}" for col in num_cols})
|
68 |
return gr.components.Dataframe(
|
|
|
62 |
if dataframe is None or dataframe.empty:
|
63 |
raise ValueError("Leaderboard DataFrame is empty or None.")
|
64 |
|
65 |
+
pdb.set_trace()
|
66 |
num_cols = dataframe.select_dtypes(include=['number']).columns
|
67 |
styler = dataframe.style.format({col: "{:.1f}" for col in num_cols})
|
68 |
return gr.components.Dataframe(
|
src/display/css_html_js.py
CHANGED
@@ -1,4 +1,22 @@
|
|
1 |
custom_css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
.markdown-text {
|
4 |
font-size: 16px !important;
|
|
|
1 |
custom_css = """
|
2 |
+
.dataframe th {
|
3 |
+
position: relative;
|
4 |
+
}
|
5 |
+
.dataframe th::after {
|
6 |
+
content: "\\f0dc"; /* Font Awesome sort icon */
|
7 |
+
font-family: "Font Awesome 5 Free";
|
8 |
+
font-weight: 900;
|
9 |
+
position: absolute;
|
10 |
+
right: 10px;
|
11 |
+
top: 50%;
|
12 |
+
transform: translateY(-50%);
|
13 |
+
}
|
14 |
+
.dataframe th.sorted-asc::after {
|
15 |
+
content: "\\f0de"; /* Font Awesome sort-up icon */
|
16 |
+
}
|
17 |
+
.dataframe th.sorted-desc::after {
|
18 |
+
content: "\\f0dd"; /* Font Awesome sort-down icon */
|
19 |
+
}
|
20 |
|
21 |
.markdown-text {
|
22 |
font-size: 16px !important;
|
src/leaderboard/read_evals.py
CHANGED
@@ -48,7 +48,7 @@ class EvalResult:
|
|
48 |
org_and_model = config.get("model_name", config.get("model_args", None))
|
49 |
org_and_model = org_and_model.split("/", 1)
|
50 |
link = config.get("link", '')
|
51 |
-
params = config.get("Params",
|
52 |
|
53 |
if len(org_and_model) == 1:
|
54 |
org = None
|
|
|
48 |
org_and_model = config.get("model_name", config.get("model_args", None))
|
49 |
org_and_model = org_and_model.split("/", 1)
|
50 |
link = config.get("link", '')
|
51 |
+
params = config.get("Params", None)
|
52 |
|
53 |
if len(org_and_model) == 1:
|
54 |
org = None
|