idolezal commited on
Commit
9d06372
1 Parent(s): 4ab19fc

Try different style of update Leaderboard

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -180,7 +180,7 @@ def submit_results():
180
  gr.Info('Submission successful!')
181
 
182
  with leaderboard_server.var_lock.ro:
183
- leaderboard = gr.update(
184
  value=leaderboard_server.get_leaderboard(category=leaderboard_server.TASKS_CATEGORY_OVERALL),
185
  visible=True,
186
  )
@@ -302,7 +302,7 @@ def change_leaderboard_category(category, selected_submission_id):
302
  model_tournament_results_table = fetch_model_tournament_results_table(selected_submission_id, category)
303
  model_tournament_results_table_csv = fetch_model_tournament_results_table_csv(selected_submission_id, category)
304
 
305
- leaderboard = gr.update(
306
  value=leaderboard_server.get_leaderboard(category=category),
307
  visible=True,
308
  )
@@ -409,7 +409,7 @@ def check_significance_is_reachable_hook():
409
 
410
  def on_application_load():
411
  with leaderboard_server.var_lock.ro:
412
- leaderboard = gr.update(
413
  value=leaderboard_server.get_leaderboard(category=leaderboard_server.TASKS_CATEGORY_OVERALL),
414
  visible=True,
415
  )
 
180
  gr.Info('Submission successful!')
181
 
182
  with leaderboard_server.var_lock.ro:
183
+ leaderboard = Leaderboard(
184
  value=leaderboard_server.get_leaderboard(category=leaderboard_server.TASKS_CATEGORY_OVERALL),
185
  visible=True,
186
  )
 
302
  model_tournament_results_table = fetch_model_tournament_results_table(selected_submission_id, category)
303
  model_tournament_results_table_csv = fetch_model_tournament_results_table_csv(selected_submission_id, category)
304
 
305
+ leaderboard = Leaderboard(
306
  value=leaderboard_server.get_leaderboard(category=category),
307
  visible=True,
308
  )
 
409
 
410
  def on_application_load():
411
  with leaderboard_server.var_lock.ro:
412
+ leaderboard = Leaderboard(
413
  value=leaderboard_server.get_leaderboard(category=leaderboard_server.TASKS_CATEGORY_OVERALL),
414
  visible=True,
415
  )