Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ 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('
|
9 |
|
10 |
# Ensure 'Model' and 'Scenario' columns are strings
|
11 |
df['Model'] = df['Model'].astype(str)
|
@@ -68,8 +68,6 @@ with demo:
|
|
68 |
|
69 |
filter_button = gr.Button("Filter")
|
70 |
filter_button.click(filter_data, inputs=[model_input, scenario_input], outputs=output)
|
71 |
-
|
72 |
-
output.render()
|
73 |
|
74 |
# Initialize leaderboard with the complete DataFrame
|
75 |
complete_pass_at_k = df.groupby('Model').apply(lambda x: pd.Series({
|
|
|
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)
|
|
|
68 |
|
69 |
filter_button = gr.Button("Filter")
|
70 |
filter_button.click(filter_data, inputs=[model_input, scenario_input], outputs=output)
|
|
|
|
|
71 |
|
72 |
# Initialize leaderboard with the complete DataFrame
|
73 |
complete_pass_at_k = df.groupby('Model').apply(lambda x: pd.Series({
|