Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -234,7 +234,7 @@ with gr.Blocks() as demo:
|
|
234 |
upvote_btn_b.click(vote_down_model, inputs=[state, chatbot1, chatbot2], outputs=[chatbot1, chatbot2, upvote_btn_a, upvote_btn_b, textbox, submit_btn])
|
235 |
with gr.Tab("Leaderboard"):
|
236 |
try:
|
237 |
-
leaderboard = gr.Dataframe(refresh_leaderboard(
|
238 |
except:
|
239 |
leaderboard = gr.Dataframe()
|
240 |
refresh_btn = gr.Button("Refresh Leaderboard")
|
|
|
234 |
upvote_btn_b.click(vote_down_model, inputs=[state, chatbot1, chatbot2], outputs=[chatbot1, chatbot2, upvote_btn_a, upvote_btn_b, textbox, submit_btn])
|
235 |
with gr.Tab("Leaderboard"):
|
236 |
try:
|
237 |
+
leaderboard = gr.Dataframe(refresh_leaderboard())
|
238 |
except:
|
239 |
leaderboard = gr.Dataframe()
|
240 |
refresh_btn = gr.Button("Refresh Leaderboard")
|