margsli commited on
Commit
dd86254
β€’
1 Parent(s): 1685375

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
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(model_table_df.iloc[i]["MT-bench (score)"])
183
- row.append(model_table_df.iloc[i]["MMLU"])
 
 
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(elo_results_file, "rb") as fin:
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 = get_arena_table(arena_df, model_table_df)
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
- "⭐ Arena Elo",
 
 
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
  ],