t0-0 commited on
Commit
a4f1763
1 Parent(s): d7ffa15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -211,6 +211,13 @@ with demo:
211
  interactive=True,
212
  elem_id="filter-columns-size",
213
  )
 
 
 
 
 
 
 
214
 
215
  leaderboard_table = gr.components.Dataframe(
216
  value=leaderboard_df[
@@ -241,6 +248,7 @@ with demo:
241
  filter_columns_type,
242
  filter_columns_precision,
243
  filter_columns_size,
 
244
  deleted_models_visibility,
245
  merged_models_visibility,
246
  flagged_models_visibility,
@@ -259,6 +267,7 @@ with demo:
259
  filter_columns_type,
260
  filter_columns_precision,
261
  filter_columns_size,
 
262
  deleted_models_visibility,
263
  merged_models_visibility,
264
  flagged_models_visibility,
@@ -269,7 +278,7 @@ with demo:
269
  # Check query parameter once at startup and update search bar + hidden component
270
  demo.load(load_query, inputs=[], outputs=[search_bar, hidden_search_bar])
271
 
272
- for selector in [shown_columns, filter_columns_type, filter_columns_precision, filter_columns_size, deleted_models_visibility, merged_models_visibility, flagged_models_visibility]:
273
  selector.change(
274
  update_table,
275
  [
@@ -278,6 +287,7 @@ with demo:
278
  filter_columns_type,
279
  filter_columns_precision,
280
  filter_columns_size,
 
281
  deleted_models_visibility,
282
  merged_models_visibility,
283
  flagged_models_visibility,
 
211
  interactive=True,
212
  elem_id="filter-columns-size",
213
  )
214
+ filter_columns_add_special_tokens = gr.CheckboxGroup(
215
+ label="Add Special Tokens",
216
+ choices=[i.value.name for i in AddSpecialTokens],
217
+ value=[i.value.name for i in AddSpecialTokens],
218
+ interactive=True,
219
+ elem_id="filter-columns-add-special-tokens",
220
+ )
221
 
222
  leaderboard_table = gr.components.Dataframe(
223
  value=leaderboard_df[
 
248
  filter_columns_type,
249
  filter_columns_precision,
250
  filter_columns_size,
251
+ filter_columns_add_special_tokens,
252
  deleted_models_visibility,
253
  merged_models_visibility,
254
  flagged_models_visibility,
 
267
  filter_columns_type,
268
  filter_columns_precision,
269
  filter_columns_size,
270
+ filter_columns_add_special_tokens,
271
  deleted_models_visibility,
272
  merged_models_visibility,
273
  flagged_models_visibility,
 
278
  # Check query parameter once at startup and update search bar + hidden component
279
  demo.load(load_query, inputs=[], outputs=[search_bar, hidden_search_bar])
280
 
281
+ for selector in [shown_columns, filter_columns_type, filter_columns_precision, filter_columns_size, filter_columns_add_special_tokens, deleted_models_visibility, merged_models_visibility, flagged_models_visibility]:
282
  selector.change(
283
  update_table,
284
  [
 
287
  filter_columns_type,
288
  filter_columns_precision,
289
  filter_columns_size,
290
+ filter_columns_add_special_tokens,
291
  deleted_models_visibility,
292
  merged_models_visibility,
293
  flagged_models_visibility,