eduagarcia commited on
Commit
8df1d5c
1 Parent(s): 1b2e131

default show private models

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -46,7 +46,6 @@ enable_space_ci()
46
  def restart_space():
47
  API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
48
 
49
-
50
  def init_space():
51
  try:
52
  print(EVAL_REQUESTS_PATH)
@@ -84,7 +83,7 @@ def init_space():
84
  )
85
  update_collections(original_df.copy())
86
  leaderboard_df = original_df.copy()
87
-
88
  plot_df = create_plot_df(create_scores_df(raw_data))
89
 
90
  (
@@ -192,7 +191,7 @@ leaderboard_df = filter_models(
192
  type_query=[t.to_str(" : ") for t in ModelType],
193
  size_query=list(NUMERIC_INTERVALS.keys()),
194
  precision_query=[i.value.name for i in Precision],
195
- show_deleted=False,
196
  show_merges=False,
197
  show_moe=True,
198
  show_flagged=False
@@ -231,7 +230,7 @@ with demo:
231
  )
232
  with gr.Row():
233
  deleted_models_visibility = gr.Checkbox(
234
- value=False, label="Show private/deleted models", interactive=True
235
  )
236
  merged_models_visibility = gr.Checkbox(
237
  value=False, label="Show merges", interactive=True
 
46
  def restart_space():
47
  API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
48
 
 
49
  def init_space():
50
  try:
51
  print(EVAL_REQUESTS_PATH)
 
83
  )
84
  update_collections(original_df.copy())
85
  leaderboard_df = original_df.copy()
86
+
87
  plot_df = create_plot_df(create_scores_df(raw_data))
88
 
89
  (
 
191
  type_query=[t.to_str(" : ") for t in ModelType],
192
  size_query=list(NUMERIC_INTERVALS.keys()),
193
  precision_query=[i.value.name for i in Precision],
194
+ show_deleted=True,
195
  show_merges=False,
196
  show_moe=True,
197
  show_flagged=False
 
230
  )
231
  with gr.Row():
232
  deleted_models_visibility = gr.Checkbox(
233
+ value=True, label="Show private/deleted models", interactive=True
234
  )
235
  merged_models_visibility = gr.Checkbox(
236
  value=False, label="Show merges", interactive=True