Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -518,12 +518,19 @@ with gr.Blocks(css=css_tech_theme) as demo:
|
|
| 518 |
)
|
| 519 |
|
| 520 |
# Leaderboard Tab
|
| 521 |
-
|
| 522 |
-
gr.
|
| 523 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 524 |
refresh_button = gr.Button("Refresh Leaderboard")
|
| 525 |
-
refresh_button.click(
|
| 526 |
-
|
|
|
|
|
|
|
|
|
|
| 527 |
# Post-Tabs Section
|
| 528 |
gr.Markdown("""
|
| 529 |
<section class="post-tabs">
|
|
|
|
| 518 |
)
|
| 519 |
|
| 520 |
# Leaderboard Tab
|
| 521 |
+
with gr.TabItem("🏅 Leaderboard"):
|
| 522 |
+
leaderboard_table = gr.Dataframe(
|
| 523 |
+
value=load_leaderboard(),
|
| 524 |
+
label="Leaderboard",
|
| 525 |
+
interactive=False,
|
| 526 |
+
wrap=True,
|
| 527 |
+
)
|
| 528 |
refresh_button = gr.Button("Refresh Leaderboard")
|
| 529 |
+
refresh_button.click(
|
| 530 |
+
lambda: load_leaderboard(),
|
| 531 |
+
inputs=[],
|
| 532 |
+
outputs=[leaderboard_table],
|
| 533 |
+
)
|
| 534 |
# Post-Tabs Section
|
| 535 |
gr.Markdown("""
|
| 536 |
<section class="post-tabs">
|