Spaces:
Running
on
Zero
Running
on
Zero
Update serve/leaderboard.py
Browse files- serve/leaderboard.py +0 -10
serve/leaderboard.py
CHANGED
@@ -49,13 +49,6 @@ def load_leaderboard_table_csv(filename, add_hyperlink=True):
|
|
49 |
for col in df.columns:
|
50 |
if "Arena Elo rating" in col:
|
51 |
df[col] = df[col].apply(lambda x: int(x) if x != "-" else np.nan)
|
52 |
-
elif col == "MMLU":
|
53 |
-
df[col] = df[col].apply(lambda x: round(x * 100, 1) if x != "-" else np.nan)
|
54 |
-
elif col == "MT-bench (win rate %)":
|
55 |
-
df[col] = df[col].apply(lambda x: round(x, 1) if x != "-" else np.nan)
|
56 |
-
elif col == "MT-bench (score)":
|
57 |
-
df[col] = df[col].apply(lambda x: round(x, 2) if x != "-" else np.nan)
|
58 |
-
|
59 |
if add_hyperlink and col == "Model":
|
60 |
df[col] = df.apply(lambda row: model_hyperlink(row[col], row["Link"]), axis=1)
|
61 |
return df
|
@@ -111,9 +104,6 @@ def get_full_table(anony_arena_df, full_arena_df, model_table_df):
|
|
111 |
row.append(np.nan)
|
112 |
row.append("N/A")
|
113 |
row.append(np.nan)
|
114 |
-
# row.append(model_table_df.iloc[i]["MT-bench (score)"])
|
115 |
-
# row.append(model_table_df.iloc[i]["Num Battles"])
|
116 |
-
# row.append(model_table_df.iloc[i]["MMLU"])
|
117 |
# Organization
|
118 |
row.append(model_table_df.iloc[i]["Organization"])
|
119 |
# license
|
|
|
49 |
for col in df.columns:
|
50 |
if "Arena Elo rating" in col:
|
51 |
df[col] = df[col].apply(lambda x: int(x) if x != "-" else np.nan)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
if add_hyperlink and col == "Model":
|
53 |
df[col] = df.apply(lambda row: model_hyperlink(row[col], row["Link"]), axis=1)
|
54 |
return df
|
|
|
104 |
row.append(np.nan)
|
105 |
row.append("N/A")
|
106 |
row.append(np.nan)
|
|
|
|
|
|
|
107 |
# Organization
|
108 |
row.append(model_table_df.iloc[i]["Organization"])
|
109 |
# license
|