Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -170,7 +170,8 @@ def generate_leaderboard():
|
|
170 |
return leaderboard_data
|
171 |
|
172 |
|
173 |
-
|
|
|
174 |
# Gradio interface setup
|
175 |
with gr.Blocks() as demo:
|
176 |
state = gr.State({})
|
@@ -198,8 +199,7 @@ with gr.Blocks() as demo:
|
|
198 |
refresh_btn = gr.Button("Refresh Leaderboard")
|
199 |
|
200 |
# Function to refresh leaderboard
|
201 |
-
|
202 |
-
return generate_leaderboard()
|
203 |
|
204 |
# Event handler for the refresh button
|
205 |
refresh_btn.click(refresh_leaderboard, inputs=[], outputs=[leaderboard])
|
|
|
170 |
return leaderboard_data
|
171 |
|
172 |
|
173 |
+
def refresh_leaderboard():
|
174 |
+
return generate_leaderboard()
|
175 |
# Gradio interface setup
|
176 |
with gr.Blocks() as demo:
|
177 |
state = gr.State({})
|
|
|
199 |
refresh_btn = gr.Button("Refresh Leaderboard")
|
200 |
|
201 |
# Function to refresh leaderboard
|
202 |
+
|
|
|
203 |
|
204 |
# Event handler for the refresh button
|
205 |
refresh_btn.click(refresh_leaderboard, inputs=[], outputs=[leaderboard])
|