lcipolina commited on
Commit
0ea97e5
·
verified ·
1 Parent(s): 2dc2f44

Include back the aggregated performance

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -255,9 +255,9 @@ def setup_player_config(
255
  return {"type": "random"}
256
 
257
 
258
- def create_player_config() -> GameArenaConfig:
259
  # Internal names for arena dropdown
260
- available_keys = get_available_games(include_aggregated=False)
261
 
262
  # Map internal names to display names
263
  key_to_display = _get_game_display_mapping()
@@ -497,7 +497,7 @@ def handle_db_upload(files: list[gr.File]) -> str:
497
 
498
  with gr.Blocks() as interface:
499
  with gr.Tab("Game Arena"):
500
- config = create_player_config()
501
 
502
  gr.Markdown("# LLM Game Arena")
503
  gr.Markdown("Play games against LLMs or watch LLMs compete!")
@@ -590,7 +590,7 @@ with gr.Blocks() as interface:
590
  "Track performance across different games!"
591
  )
592
  # Use the same display logic as Game Arena
593
- leaderboard_config = create_player_config()
594
  leaderboard_game_dropdown = gr.Dropdown(
595
  choices=leaderboard_config["available_games"],
596
  label="Select Game",
 
255
  return {"type": "random"}
256
 
257
 
258
+ def create_player_config(include_aggregated: bool = False) -> GameArenaConfig:
259
  # Internal names for arena dropdown
260
+ available_keys = get_available_games(include_aggregated=include_aggregated)
261
 
262
  # Map internal names to display names
263
  key_to_display = _get_game_display_mapping()
 
497
 
498
  with gr.Blocks() as interface:
499
  with gr.Tab("Game Arena"):
500
+ config = create_player_config(include_aggregated=False)
501
 
502
  gr.Markdown("# LLM Game Arena")
503
  gr.Markdown("Play games against LLMs or watch LLMs compete!")
 
590
  "Track performance across different games!"
591
  )
592
  # Use the same display logic as Game Arena
593
+ leaderboard_config = create_player_config(include_aggregated=True)
594
  leaderboard_game_dropdown = gr.Dropdown(
595
  choices=leaderboard_config["available_games"],
596
  label="Select Game",