onekq commited on
Commit
f7f1bb2
1 Parent(s): fa30761

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def filter_data(model, scenario):
35
  return pd.DataFrame([pass_at_k])
36
 
37
  # Initialize the leaderboard
38
- def init_leaderboard(dataframe):
39
  if dataframe is None or dataframe.empty:
40
  raise ValueError("Leaderboard DataFrame is empty or None.")
41
  return Leaderboard(
@@ -51,6 +51,7 @@ def init_leaderboard(dataframe):
51
  filter_columns=[], # Filters for the columns
52
  bool_checkboxgroup_label="Hide models",
53
  interactive=False,
 
54
  )
55
 
56
  # Gradio interface
@@ -73,7 +74,7 @@ with demo:
73
  'pass@10': estimate_pass_at_k(x['Runs'].values, x['Successes'].values, 10).mean()
74
  }, index=['pass@1', 'pass@5', 'pass@10'])).reset_index()
75
 
76
- leaderboard = init_leaderboard(complete_pass_at_k)
77
 
78
  model_input = gr.Dropdown(choices=models, label="Select Model")
79
  scenario_input = gr.Dropdown(choices=scenarios, label="Select Category")
 
35
  return pd.DataFrame([pass_at_k])
36
 
37
  # Initialize the leaderboard
38
+ def init_leaderboard(dataframe, height=600):
39
  if dataframe is None or dataframe.empty:
40
  raise ValueError("Leaderboard DataFrame is empty or None.")
41
  return Leaderboard(
 
51
  filter_columns=[], # Filters for the columns
52
  bool_checkboxgroup_label="Hide models",
53
  interactive=False,
54
+ height=height,
55
  )
56
 
57
  # Gradio interface
 
74
  'pass@10': estimate_pass_at_k(x['Runs'].values, x['Successes'].values, 10).mean()
75
  }, index=['pass@1', 'pass@5', 'pass@10'])).reset_index()
76
 
77
+ leaderboard = init_leaderboard(complete_pass_at_k, height=800)
78
 
79
  model_input = gr.Dropdown(choices=models, label="Select Model")
80
  scenario_input = gr.Dropdown(choices=scenarios, label="Select Category")