Commit
Β·
43dd2bb
1
Parent(s):
a6f5bd8
Sort leaderboard entries by "Final Solution Accuracy" in hf_utils.py
Browse files- src/hf_utils.py +8 -2
src/hf_utils.py
CHANGED
@@ -109,8 +109,14 @@ def load_leaderboard_data():
|
|
109 |
|
110 |
if not leaderboard_entries:
|
111 |
return pd.DataFrame(columns=LDB_COLS)
|
112 |
-
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
|
116 |
def upload_submission(uploaded_file, dir_name, report_file, model_framework, base_llm):
|
|
|
109 |
|
110 |
if not leaderboard_entries:
|
111 |
return pd.DataFrame(columns=LDB_COLS)
|
112 |
+
|
113 |
+
df = pd.DataFrame(leaderboard_entries)
|
114 |
+
|
115 |
+
# Sort by "Final Solution Accuracy" descending
|
116 |
+
df[LDB_COLS[4]] = pd.to_numeric(df[LDB_COLS[4]], errors='coerce') # Ensure numeric type
|
117 |
+
df = df.sort_values(by=LDB_COLS[4], ascending=False)
|
118 |
+
|
119 |
+
return df
|
120 |
|
121 |
|
122 |
def upload_submission(uploaded_file, dir_name, report_file, model_framework, base_llm):
|