Anas Awadalla
commited on
Commit
·
f70ea7c
1
Parent(s):
78df5f4
handle alternate formate
Browse files- src/streamlit_app.py +5 -0
src/streamlit_app.py
CHANGED
|
@@ -137,6 +137,11 @@ def fetch_leaderboard_data():
|
|
| 137 |
path_parts = file_path.split('/')
|
| 138 |
dataset_name = path_parts[1] if len(path_parts) > 1 else "unknown"
|
| 139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
# Get model name from metadata or path
|
| 141 |
model_checkpoint = metadata.get("model_checkpoint", "")
|
| 142 |
model_name = model_checkpoint.split('/')[-1]
|
|
|
|
| 137 |
path_parts = file_path.split('/')
|
| 138 |
dataset_name = path_parts[1] if len(path_parts) > 1 else "unknown"
|
| 139 |
|
| 140 |
+
# Normalize dataset name - remove 'eval-alternative' suffix
|
| 141 |
+
if dataset_name.endswith("-eval-alternative"):
|
| 142 |
+
# Remove the suffix for showdown-clicks, screenspot-pro, screenspot-v2
|
| 143 |
+
dataset_name = dataset_name.replace("-eval-alternative", "")
|
| 144 |
+
|
| 145 |
# Get model name from metadata or path
|
| 146 |
model_checkpoint = metadata.get("model_checkpoint", "")
|
| 147 |
model_name = model_checkpoint.split('/')[-1]
|