Spaces:
Running
Running
Update app.py
Browse files
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=
|
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")
|