onekq commited on
Commit
47a8f30
1 Parent(s): e7c3bd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -5,7 +5,11 @@ from collections import defaultdict
5
  from gradio_leaderboard import Leaderboard, SelectColumns
6
 
7
  # Load the DataFrame from the CSV file for detailed pass@k metrics
8
- df = pd.read_csv('results.csv')
 
 
 
 
9
 
10
  # Function to estimate pass@k
11
  def estimate_pass_at_k(num_samples, num_correct, k):
@@ -50,8 +54,8 @@ def init_leaderboard(dataframe):
50
  )
51
 
52
  # Gradio interface
53
- models = df['Model'].unique()
54
- scenarios = df['Scenario'].unique()
55
 
56
  demo = gr.Blocks()
57
 
 
5
  from gradio_leaderboard import Leaderboard, SelectColumns
6
 
7
  # Load the DataFrame from the CSV file for detailed pass@k metrics
8
+ df = pd.read_csv('detailed_results.csv')
9
+
10
+ # Ensure 'Model' and 'Scenario' columns are strings
11
+ df['Model'] = df['Model'].astype(str)
12
+ df['Scenario'] = df['Scenario'].astype(str)
13
 
14
  # Function to estimate pass@k
15
  def estimate_pass_at_k(num_samples, num_correct, k):
 
54
  )
55
 
56
  # Gradio interface
57
+ models = df['Model'].unique().tolist()
58
+ scenarios = df['Scenario'].unique().tolist()
59
 
60
  demo = gr.Blocks()
61