Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -179,8 +179,10 @@ def get_full_table(model_table_df):
|
|
179 |
# model display name
|
180 |
row.append(model_name)
|
181 |
row.append(np.nan)
|
182 |
-
row.append(
|
183 |
-
row.append(
|
|
|
|
|
184 |
# Organization
|
185 |
row.append(model_table_df.iloc[i]["Organization"])
|
186 |
# license
|
@@ -283,7 +285,7 @@ def build_leaderboard_tab(results_file, leaderboard_table_file, show_plot=False)
|
|
283 |
if results_file is None: # Do live update
|
284 |
default_md = "Loading ..."
|
285 |
else:
|
286 |
-
with open(
|
287 |
elo_results = pickle.load(fin)
|
288 |
if "full" in elo_results:
|
289 |
print("KEYS ", elo_results.keys())
|
@@ -303,7 +305,7 @@ def build_leaderboard_tab(results_file, leaderboard_table_file, show_plot=False)
|
|
303 |
|
304 |
with gr.Tabs() as tabs:
|
305 |
# arena table
|
306 |
-
arena_table_vals =
|
307 |
with gr.Tab("Arena Elo", id=0):
|
308 |
md = make_arena_leaderboard_md(arena_df)
|
309 |
leaderboard_markdown = gr.Markdown(md, elem_id="leaderboard_markdown")
|
@@ -318,7 +320,9 @@ def build_leaderboard_tab(results_file, leaderboard_table_file, show_plot=False)
|
|
318 |
headers=[
|
319 |
"Rank",
|
320 |
"π€ Model",
|
321 |
-
"β
|
|
|
|
|
322 |
"Organization",
|
323 |
"License",
|
324 |
],
|
@@ -326,6 +330,8 @@ def build_leaderboard_tab(results_file, leaderboard_table_file, show_plot=False)
|
|
326 |
"number",
|
327 |
"markdown",
|
328 |
"number",
|
|
|
|
|
329 |
"str",
|
330 |
"str",
|
331 |
],
|
|
|
179 |
# model display name
|
180 |
row.append(model_name)
|
181 |
row.append(np.nan)
|
182 |
+
row.append(np.nan)
|
183 |
+
row.append(np.nan)
|
184 |
+
# row.append(model_table_df.iloc[i]["MT-bench (score)"])
|
185 |
+
# row.append(model_table_df.iloc[i]["MMLU"])
|
186 |
# Organization
|
187 |
row.append(model_table_df.iloc[i]["Organization"])
|
188 |
# license
|
|
|
285 |
if results_file is None: # Do live update
|
286 |
default_md = "Loading ..."
|
287 |
else:
|
288 |
+
with open(results_file, "rb") as fin:
|
289 |
elo_results = pickle.load(fin)
|
290 |
if "full" in elo_results:
|
291 |
print("KEYS ", elo_results.keys())
|
|
|
305 |
|
306 |
with gr.Tabs() as tabs:
|
307 |
# arena table
|
308 |
+
arena_table_vals = get_full_table(model_table_df)
|
309 |
with gr.Tab("Arena Elo", id=0):
|
310 |
md = make_arena_leaderboard_md(arena_df)
|
311 |
leaderboard_markdown = gr.Markdown(md, elem_id="leaderboard_markdown")
|
|
|
320 |
headers=[
|
321 |
"Rank",
|
322 |
"π€ Model",
|
323 |
+
"β Task 1",
|
324 |
+
"π Task 2",
|
325 |
+
"π Task 3",
|
326 |
"Organization",
|
327 |
"License",
|
328 |
],
|
|
|
330 |
"number",
|
331 |
"markdown",
|
332 |
"number",
|
333 |
+
"number",
|
334 |
+
"number",
|
335 |
"str",
|
336 |
"str",
|
337 |
],
|