winglian commited on
Commit
d82b69e
1 Parent(s): 8facb9e

fix leaderboard refresh

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -314,7 +314,7 @@ with gr.Blocks() as arena:
314
  refresh = gr.Button(value="Refresh Leaderboard", variant="secondary").style(full_width=True)
315
  state = gr.State({})
316
 
317
- refresh.click(fn=refresh_md, inputs=[], outputs=refresh)
318
 
319
  clear.click(lambda: None, None, chatbot1, queue=False)
320
  clear.click(lambda: None, None, chatbot2, queue=False)
 
314
  refresh = gr.Button(value="Refresh Leaderboard", variant="secondary").style(full_width=True)
315
  state = gr.State({})
316
 
317
+ refresh.click(fn=refresh_md, inputs=[], outputs=[leaderboard_markdown])
318
 
319
  clear.click(lambda: None, None, chatbot1, queue=False)
320
  clear.click(lambda: None, None, chatbot2, queue=False)