Spaces:
Runtime error
Runtime error
kexinhuang12345
commited on
Commit
·
ba0a549
1
Parent(s):
59ceb6d
add
Browse files- src/populate.py +1 -1
- src/submission/submit.py +4 -0
src/populate.py
CHANGED
|
@@ -64,7 +64,7 @@ def get_leaderboard_df(EVAL_REQUESTS_PATH, tasks) -> pd.DataFrame:
|
|
| 64 |
ranks = df_res[list(name2short_name.values())].rank()
|
| 65 |
df_res.rename(columns={'model': 'Model', 'author': 'Author', 'email': 'Email', 'paper_url': 'Paper URL', 'github_url': 'Github URL', 'submitted_time': 'Time', 'params': '# of Params'}, inplace=True)
|
| 66 |
df_res['Average Rank⬆️'] = ranks.mean(axis=1)
|
| 67 |
-
df_res.sort_values(by='Average Rank⬆️', ascending=
|
| 68 |
return df_res
|
| 69 |
|
| 70 |
def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
|
|
|
|
| 64 |
ranks = df_res[list(name2short_name.values())].rank()
|
| 65 |
df_res.rename(columns={'model': 'Model', 'author': 'Author', 'email': 'Email', 'paper_url': 'Paper URL', 'github_url': 'Github URL', 'submitted_time': 'Time', 'params': '# of Params'}, inplace=True)
|
| 66 |
df_res['Average Rank⬆️'] = ranks.mean(axis=1)
|
| 67 |
+
df_res.sort_values(by='Average Rank⬆️', ascending=False, inplace=True)
|
| 68 |
return df_res
|
| 69 |
|
| 70 |
def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
|
src/submission/submit.py
CHANGED
|
@@ -87,6 +87,10 @@ def add_new_eval(
|
|
| 87 |
add_new_eval_json(eval_entry, out_path)
|
| 88 |
|
| 89 |
print("Uploading eval file")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
API.upload_file(
|
| 91 |
path_or_fileobj=out_path,
|
| 92 |
path_in_repo=out_path.split("eval-queue/")[1],
|
|
|
|
| 87 |
add_new_eval_json(eval_entry, out_path)
|
| 88 |
|
| 89 |
print("Uploading eval file")
|
| 90 |
+
print(out_path)
|
| 91 |
+
print(QUEUE_REPO)
|
| 92 |
+
print(TOKEN)
|
| 93 |
+
print(API)
|
| 94 |
API.upload_file(
|
| 95 |
path_or_fileobj=out_path,
|
| 96 |
path_in_repo=out_path.split("eval-queue/")[1],
|