adjust path to leaderboard
Browse files- src/populate.py +1 -6
src/populate.py
CHANGED
|
@@ -7,12 +7,7 @@ from src.display.formatting import make_clickable_model
|
|
| 7 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
| 8 |
"""Creates a dataframe from the static CSV file"""
|
| 9 |
# Read the static CSV file
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
if not os.path.exists(csv_path):
|
| 13 |
-
raise FileNotFoundError(f"CSV file not found at {csv_path}")
|
| 14 |
-
|
| 15 |
-
df = pd.read_csv(csv_path)
|
| 16 |
|
| 17 |
# Clean up column names to match our schema
|
| 18 |
df.columns = df.columns.str.replace("pass@1", "pass_at_1")
|
|
|
|
| 7 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
| 8 |
"""Creates a dataframe from the static CSV file"""
|
| 9 |
# Read the static CSV file
|
| 10 |
+
df = pd.read_csv(results_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Clean up column names to match our schema
|
| 13 |
df.columns = df.columns.str.replace("pass@1", "pass_at_1")
|