Spaces:
Running
Running
update scripts
Browse files
app.py
CHANGED
|
@@ -48,7 +48,9 @@ def update_table(
|
|
| 48 |
# filtered_df = filter_queries(query, filtered_df)
|
| 49 |
# df = select_columns(filtered_df, columns)
|
| 50 |
filtered_df = hidden_df.copy()
|
| 51 |
-
df = filter_queries(query,
|
|
|
|
|
|
|
| 52 |
return df
|
| 53 |
|
| 54 |
def search_table(df: pd.DataFrame, query: str) -> pd.DataFrame:
|
|
@@ -81,6 +83,19 @@ with demo:
|
|
| 81 |
show_label=False,
|
| 82 |
elem_id="search-bar",
|
| 83 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
leaderboard_table = gr.components.Dataframe(
|
| 86 |
value=df_avg,
|
|
@@ -187,7 +202,7 @@ with demo:
|
|
| 187 |
],
|
| 188 |
leaderboard_table,
|
| 189 |
)
|
| 190 |
-
|
| 191 |
with gr.TabItem("π About", elem_id="llm-benchmark-tab-table", id=3):
|
| 192 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
| 193 |
|
|
|
|
| 48 |
# filtered_df = filter_queries(query, filtered_df)
|
| 49 |
# df = select_columns(filtered_df, columns)
|
| 50 |
filtered_df = hidden_df.copy()
|
| 51 |
+
df = filter_queries(query, filtered_df)
|
| 52 |
+
# deduplication
|
| 53 |
+
df = df.drop_duplicates(subset=["Model"])
|
| 54 |
return df
|
| 55 |
|
| 56 |
def search_table(df: pd.DataFrame, query: str) -> pd.DataFrame:
|
|
|
|
| 83 |
show_label=False,
|
| 84 |
elem_id="search-bar",
|
| 85 |
)
|
| 86 |
+
|
| 87 |
+
with gr.Row():
|
| 88 |
+
shown_columns = gr.CheckboxGroup(
|
| 89 |
+
choices=["π’ base", "πΆ chat"
|
| 90 |
+
],
|
| 91 |
+
value=[
|
| 92 |
+
"base",
|
| 93 |
+
"chat",
|
| 94 |
+
],
|
| 95 |
+
label="Select model types to show",
|
| 96 |
+
elem_id="column-select",
|
| 97 |
+
interactive=True,
|
| 98 |
+
)
|
| 99 |
|
| 100 |
leaderboard_table = gr.components.Dataframe(
|
| 101 |
value=df_avg,
|
|
|
|
| 202 |
],
|
| 203 |
leaderboard_table,
|
| 204 |
)
|
| 205 |
+
|
| 206 |
with gr.TabItem("π About", elem_id="llm-benchmark-tab-table", id=3):
|
| 207 |
gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
|
| 208 |
|