Spaces:
Running
Running
tytsui commited on
Commit ·
305639d
1
Parent(s): bbbd395
update
Browse files- .DS_Store +0 -0
- app.py +1 -1
- src/.DS_Store +0 -0
- src/leaderboard/student_results.py +3 -0
.DS_Store
CHANGED
|
Binary files a/.DS_Store and b/.DS_Store differ
|
|
|
app.py
CHANGED
|
@@ -13,7 +13,7 @@ with demo:
|
|
| 13 |
gr.HTML("<h1 align='center' id='space-title'>IMG2GPS Student Leaderboard</h1>")
|
| 14 |
gr.Markdown(
|
| 15 |
"Upload your PyTorch checkpoint (.pt), `model.py`, and `preprocess.py` to evaluate on the shared dataset. "
|
| 16 |
-
"
|
| 17 |
elem_classes="markdown-text",
|
| 18 |
)
|
| 19 |
|
|
|
|
| 13 |
gr.HTML("<h1 align='center' id='space-title'>IMG2GPS Student Leaderboard</h1>")
|
| 14 |
gr.Markdown(
|
| 15 |
"Upload your PyTorch checkpoint (.pt), `model.py`, and `preprocess.py` to evaluate on the shared dataset. "
|
| 16 |
+
"A separate Leaderboard tab shows best-per-alias results and stats.",
|
| 17 |
elem_classes="markdown-text",
|
| 18 |
)
|
| 19 |
|
src/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
src/leaderboard/student_results.py
CHANGED
|
@@ -74,6 +74,9 @@ def get_student_leaderboard_df(dataset_name: Optional[str] = None) -> Tuple[pd.D
|
|
| 74 |
display_cols = ["alias"] + [c for c in best_df.columns if c not in ["alias", "group_id"]]
|
| 75 |
best_df = best_df[display_cols]
|
| 76 |
|
|
|
|
|
|
|
|
|
|
| 77 |
return best_df, stats
|
| 78 |
|
| 79 |
|
|
|
|
| 74 |
display_cols = ["alias"] + [c for c in best_df.columns if c not in ["alias", "group_id"]]
|
| 75 |
best_df = best_df[display_cols]
|
| 76 |
|
| 77 |
+
# Capitalize header for display
|
| 78 |
+
best_df = best_df.rename(columns={"alias": "Alias"})
|
| 79 |
+
|
| 80 |
return best_df, stats
|
| 81 |
|
| 82 |
|