Spaces:
Runtime error
Runtime error
pminervini
commited on
Commit
•
f69201c
1
Parent(s):
b321106
update
Browse files
app.py
CHANGED
@@ -57,11 +57,13 @@ leaderboard_df = original_df.copy()
|
|
57 |
# plot_df = create_plot_df(create_scores_df(raw_data))
|
58 |
|
59 |
finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
|
60 |
-
deleted_models_visibility = True
|
|
|
61 |
|
62 |
# Searching and filtering
|
63 |
-
def update_table(hidden_df: pd.DataFrame, columns: list, type_query: list, precision_query: str, size_query: list,
|
64 |
-
|
|
|
65 |
filtered_df = filter_models(hidden_df, type_query, size_query, precision_query, show_deleted)
|
66 |
filtered_df = filter_queries(query, filtered_df)
|
67 |
df = select_columns(filtered_df, columns)
|
@@ -213,7 +215,7 @@ with demo:
|
|
213 |
filter_columns_type,
|
214 |
filter_columns_precision,
|
215 |
filter_columns_size,
|
216 |
-
deleted_models_visibility,
|
217 |
search_bar,
|
218 |
],
|
219 |
leaderboard_table,
|
@@ -227,7 +229,7 @@ with demo:
|
|
227 |
filter_columns_type,
|
228 |
filter_columns_precision,
|
229 |
filter_columns_size,
|
230 |
-
deleted_models_visibility,
|
231 |
search_bar,
|
232 |
],
|
233 |
leaderboard_table,
|
|
|
57 |
# plot_df = create_plot_df(create_scores_df(raw_data))
|
58 |
|
59 |
finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
|
60 |
+
# deleted_models_visibility = True
|
61 |
+
|
62 |
|
63 |
# Searching and filtering
|
64 |
+
def update_table(hidden_df: pd.DataFrame, columns: list, type_query: list, precision_query: str, size_query: list, query: str):
|
65 |
+
# show_deleted: bool,
|
66 |
+
show_deleted = True
|
67 |
filtered_df = filter_models(hidden_df, type_query, size_query, precision_query, show_deleted)
|
68 |
filtered_df = filter_queries(query, filtered_df)
|
69 |
df = select_columns(filtered_df, columns)
|
|
|
215 |
filter_columns_type,
|
216 |
filter_columns_precision,
|
217 |
filter_columns_size,
|
218 |
+
# deleted_models_visibility,
|
219 |
search_bar,
|
220 |
],
|
221 |
leaderboard_table,
|
|
|
229 |
filter_columns_type,
|
230 |
filter_columns_precision,
|
231 |
filter_columns_size,
|
232 |
+
# deleted_models_visibility,
|
233 |
search_bar,
|
234 |
],
|
235 |
leaderboard_table,
|