onekq commited on
Commit
34ff948
β€’
1 Parent(s): 53aba41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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