Spaces:
Runtime error
Runtime error
Refactor init_leaderboard function to handle multiple subsets and improve column selection and hiding
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ except Exception:
|
|
| 65 |
restart_space()
|
| 66 |
|
| 67 |
|
| 68 |
-
LEADERBOARD_DF = get_leaderboard_df(RESULTS_REPO)
|
| 69 |
|
| 70 |
|
| 71 |
def init_leaderboard(dataframes, subsets):
|
|
@@ -95,7 +95,7 @@ with demo:
|
|
| 95 |
|
| 96 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 97 |
with gr.TabItem("π
LiveBench Results", elem_id="llm-benchmark-tab-table", id=0):
|
| 98 |
-
leaderboard = init_leaderboard(LEADERBOARD_DF)
|
| 99 |
|
| 100 |
with gr.TabItem("π About", elem_id="llm-benchmark-tab-table", id=2):
|
| 101 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
|
|
|
| 65 |
restart_space()
|
| 66 |
|
| 67 |
|
| 68 |
+
LEADERBOARD_DF, SUBSETS = get_leaderboard_df(RESULTS_REPO)
|
| 69 |
|
| 70 |
|
| 71 |
def init_leaderboard(dataframes, subsets):
|
|
|
|
| 95 |
|
| 96 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
| 97 |
with gr.TabItem("π
LiveBench Results", elem_id="llm-benchmark-tab-table", id=0):
|
| 98 |
+
leaderboard = init_leaderboard(LEADERBOARD_DF, SUBSETS)
|
| 99 |
|
| 100 |
with gr.TabItem("π About", elem_id="llm-benchmark-tab-table", id=2):
|
| 101 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|