daiqi commited on
Commit
414dc4a
Β·
verified Β·
1 Parent(s): 90def7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -66,7 +66,7 @@ def init_leaderboard(dataframe):
66
  if dataframe is None or dataframe.empty:
67
  raise ValueError("Leaderboard DataFrame is empty or None.")
68
  return Leaderboard(
69
- value=_test_data, #dataframe,
70
  select_columns=SelectColumns(
71
  default_selection=["Name", "BaseModel", "Link", "Env."],
72
  cant_deselect=["Name", "BaseModel", "Link", "Env."],
@@ -101,7 +101,7 @@ with demo:
101
 
102
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
103
  with gr.TabItem("πŸ… LLM Benchmark", elem_id="llm-benchmark-tab-table", id=0):
104
- leaderboard = init_leaderboard(LEADERBOARD_DF)
105
 
106
  with gr.TabItem("πŸ“ About", elem_id="llm-benchmark-tab-table", id=2):
107
  gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
 
66
  if dataframe is None or dataframe.empty:
67
  raise ValueError("Leaderboard DataFrame is empty or None.")
68
  return Leaderboard(
69
+ value=dataframe, #dataframe,
70
  select_columns=SelectColumns(
71
  default_selection=["Name", "BaseModel", "Link", "Env."],
72
  cant_deselect=["Name", "BaseModel", "Link", "Env."],
 
101
 
102
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
103
  with gr.TabItem("πŸ… LLM Benchmark", elem_id="llm-benchmark-tab-table", id=0):
104
+ leaderboard = init_leaderboard(_test_data) # LEADERBOARD_DF
105
 
106
  with gr.TabItem("πŸ“ About", elem_id="llm-benchmark-tab-table", id=2):
107
  gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")