Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -288,62 +288,6 @@ with demo:
|
|
288 |
leaderboard_table,
|
289 |
)
|
290 |
|
291 |
-
gr.Markdown("### Unlearned Concepts Parachute")
|
292 |
-
leaderboard_table = gr.components.Dataframe(
|
293 |
-
value = df_results,
|
294 |
-
datatype = TYPES,
|
295 |
-
elem_id = "leaderboard-table",
|
296 |
-
interactive = False,
|
297 |
-
visible=True,
|
298 |
-
# column_widths=["20%", "6%", "8%", "6%", "8%", "8%", "6%", "6%", "6%", "6%", "6%"],
|
299 |
-
)
|
300 |
-
|
301 |
-
# gr.Markdown("The \"Cost\" column is calculated as USD / Million tokens of output.")
|
302 |
-
|
303 |
-
hidden_leaderboard_table_for_search = gr.components.Dataframe(
|
304 |
-
value=df_results_init,
|
305 |
-
# elem_id="leaderboard-table",
|
306 |
-
interactive=False,
|
307 |
-
visible=False,
|
308 |
-
)
|
309 |
-
|
310 |
-
search_bar.submit(
|
311 |
-
update_table,
|
312 |
-
[
|
313 |
-
# df_avg,
|
314 |
-
hidden_leaderboard_table_for_search,
|
315 |
-
model1_column,
|
316 |
-
# shown_columns,
|
317 |
-
#type_query,
|
318 |
-
open_query,
|
319 |
-
# filter_columns_type,
|
320 |
-
# filter_columns_precision,
|
321 |
-
# filter_columns_size,
|
322 |
-
# deleted_models_visibility,
|
323 |
-
search_bar,
|
324 |
-
],
|
325 |
-
leaderboard_table,
|
326 |
-
)
|
327 |
-
|
328 |
-
#for selector in [type_query, open_query]:
|
329 |
-
for selector in [open_query,model1_column]:
|
330 |
-
selector.change(
|
331 |
-
update_table,
|
332 |
-
[
|
333 |
-
# df_avg,
|
334 |
-
hidden_leaderboard_table_for_search,
|
335 |
-
model1_column,
|
336 |
-
# shown_columns,
|
337 |
-
#type_query,
|
338 |
-
open_query,
|
339 |
-
# filter_columns_type,
|
340 |
-
# filter_columns_precision,
|
341 |
-
# filter_columns_size,
|
342 |
-
# deleted_models_visibility,
|
343 |
-
search_bar,
|
344 |
-
],
|
345 |
-
leaderboard_table,
|
346 |
-
)
|
347 |
# with gr.Row():
|
348 |
# shown_columns = gr.CheckboxGroup(
|
349 |
# choices=[
|
|
|
288 |
leaderboard_table,
|
289 |
)
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
# with gr.Row():
|
292 |
# shown_columns = gr.CheckboxGroup(
|
293 |
# choices=[
|