Update app.py
Browse files
app.py
CHANGED
@@ -61,6 +61,7 @@ scenarios = df['Scenario'].unique().tolist()
|
|
61 |
|
62 |
demo = gr.Blocks()
|
63 |
|
|
|
64 |
with demo:
|
65 |
# Markdown for the leaderboard header and external links
|
66 |
gr.Markdown("# π WebApp1K Models Leaderboard")
|
@@ -74,10 +75,12 @@ with demo:
|
|
74 |
|
75 |
# WebApp1K-Duo leaderboard display
|
76 |
gr.Markdown("# WebApp1K-Duo ([Benchmark](https://huggingface.co/datasets/onekq-ai/WebApp1K-Duo-React))")
|
|
|
77 |
duo_leaderboard.render()
|
78 |
|
79 |
# WebApp1K main leaderboard display
|
80 |
gr.Markdown("# WebApp1K ([Benchmark](https://huggingface.co/datasets/onekq-ai/WebApp1K-React))")
|
|
|
81 |
leaderboard.render()
|
82 |
|
83 |
# Launch the Gradio interface
|
|
|
61 |
|
62 |
demo = gr.Blocks()
|
63 |
|
64 |
+
|
65 |
with demo:
|
66 |
# Markdown for the leaderboard header and external links
|
67 |
gr.Markdown("# π WebApp1K Models Leaderboard")
|
|
|
75 |
|
76 |
# WebApp1K-Duo leaderboard display
|
77 |
gr.Markdown("# WebApp1K-Duo ([Benchmark](https://huggingface.co/datasets/onekq-ai/WebApp1K-Duo-React))")
|
78 |
+
duo_leaderboard = init_leaderboard(duo_complete_pass_at_k, default_selection = ["Model", "pass@1"], height=400)
|
79 |
duo_leaderboard.render()
|
80 |
|
81 |
# WebApp1K main leaderboard display
|
82 |
gr.Markdown("# WebApp1K ([Benchmark](https://huggingface.co/datasets/onekq-ai/WebApp1K-React))")
|
83 |
+
leaderboard = init_leaderboard(complete_pass_at_k, height=800)
|
84 |
leaderboard.render()
|
85 |
|
86 |
# Launch the Gradio interface
|