Spaces:
Sleeping
Sleeping
SAGE OSS Evaluator
commited on
Commit
·
dbc2e78
1
Parent(s):
2804940
fix: Fix Python 3.8 compatibility - change list[pd.DataFrame] to List[pd.DataFrame]
Browse files- src/populate.py +2 -1
src/populate.py
CHANGED
|
@@ -2,6 +2,7 @@ import json
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
import pandas as pd
|
|
|
|
| 5 |
|
| 6 |
from src.display.formatting import has_no_nan_values, make_clickable_model
|
| 7 |
from src.display.utils import AutoEvalColumn, EvalQueueColumn
|
|
@@ -157,7 +158,7 @@ def get_sage_leaderboard_df(cols: list, benchmark_cols: list) -> pd.DataFrame:
|
|
| 157 |
return df
|
| 158 |
|
| 159 |
|
| 160 |
-
def get_evaluation_queue_df(save_path: str, cols: list) ->
|
| 161 |
"""Creates the different dataframes for the evaluation queues requestes"""
|
| 162 |
if not os.path.exists(save_path):
|
| 163 |
# Return empty dataframes if the path doesn't exist
|
|
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
import pandas as pd
|
| 5 |
+
from typing import List
|
| 6 |
|
| 7 |
from src.display.formatting import has_no_nan_values, make_clickable_model
|
| 8 |
from src.display.utils import AutoEvalColumn, EvalQueueColumn
|
|
|
|
| 158 |
return df
|
| 159 |
|
| 160 |
|
| 161 |
+
def get_evaluation_queue_df(save_path: str, cols: list) -> List[pd.DataFrame]:
|
| 162 |
"""Creates the different dataframes for the evaluation queues requestes"""
|
| 163 |
if not os.path.exists(save_path):
|
| 164 |
# Return empty dataframes if the path doesn't exist
|