Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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
|