CodingWithTim commited on
Commit
94b55c8
β€’
1 Parent(s): b63d7ed
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def build_demo(elo_results_file, leaderboard_table_file):
41
  css=block_css,
42
  ) as demo:
43
  leader_components = build_leaderboard_tab(
44
- elo_results_file, leaderboard_table_file, arena_hard_leaderboard=None, show_plot=True, mirror=True
45
  )
46
  return demo
47
 
@@ -62,6 +62,10 @@ if __name__ == "__main__":
62
  leaderboard_table_files = glob.glob("leaderboard_table_*.csv")
63
  leaderboard_table_files.sort(key=lambda x: int(x[18:-4]))
64
  leaderboard_table_file = leaderboard_table_files[-1]
 
 
 
 
65
 
66
  demo = build_demo(elo_result_file, leaderboard_table_file)
67
  demo.launch(share=args.share, server_name=args.host, server_port=args.port)
 
41
  css=block_css,
42
  ) as demo:
43
  leader_components = build_leaderboard_tab(
44
+ elo_results_file, leaderboard_table_file, arena_hard_file, show_plot=True, mirror=True
45
  )
46
  return demo
47
 
 
62
  leaderboard_table_files = glob.glob("leaderboard_table_*.csv")
63
  leaderboard_table_files.sort(key=lambda x: int(x[18:-4]))
64
  leaderboard_table_file = leaderboard_table_files[-1]
65
+
66
+ arena_hard_files = glob.glob("arena_hard_auto_leaderboard_*.csv")
67
+ arena_hard_files.sort(key=lambda x: float(x[29:32]))
68
+ arena_hard_file = arena_hard_files[-1]
69
 
70
  demo = build_demo(elo_result_file, leaderboard_table_file)
71
  demo.launch(share=args.share, server_name=args.host, server_port=args.port)