idolezal commited on
Commit
97f53f2
β€’
1 Parent(s): ec6e1e5

Try to solve freeze after sort table and change category

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -144,7 +144,7 @@ def fetch_model_detail(submission_id):
144
  )
145
 
146
  def change_leaderboard_category(category):
147
- return gr.update(
148
  value=leaderboard_server.get_leaderboard(category=category),
149
  visible=True,
150
  datatype="markdown",
 
144
  )
145
 
146
  def change_leaderboard_category(category):
147
+ return gr.DataFrame(
148
  value=leaderboard_server.get_leaderboard(category=category),
149
  visible=True,
150
  datatype="markdown",