rwitz commited on
Commit
5ee7013
1 Parent(s): 6c9a789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -194,7 +194,7 @@ with gr.Blocks() as demo:
194
  upvote_btn_a.click(vote_up_model, inputs=[state, chatbot1,chatbot2], outputs=[chatbot1,chatbot2,upvote_btn_a,upvote_btn_b,textbox,submit_btn])
195
  upvote_btn_b.click(vote_down_model, inputs=[state, chatbot1,chatbot2], outputs=[chatbot1,chatbot2,upvote_btn_a,upvote_btn_b,textbox,submit_btn])
196
  with gr.Tab("Leaderboard"):
197
- leaderboard = gr.Dataframe(generate_leaderboard())
198
  refresh_btn = gr.Button("Refresh Leaderboard")
199
 
200
  # Function to refresh leaderboard
 
194
  upvote_btn_a.click(vote_up_model, inputs=[state, chatbot1,chatbot2], outputs=[chatbot1,chatbot2,upvote_btn_a,upvote_btn_b,textbox,submit_btn])
195
  upvote_btn_b.click(vote_down_model, inputs=[state, chatbot1,chatbot2], outputs=[chatbot1,chatbot2,upvote_btn_a,upvote_btn_b,textbox,submit_btn])
196
  with gr.Tab("Leaderboard"):
197
+ leaderboard = gr.Dataframe(refresh_leaderboard())
198
  refresh_btn = gr.Button("Refresh Leaderboard")
199
 
200
  # Function to refresh leaderboard