Anas Awadalla
commited on
Commit
·
af25999
1
Parent(s):
f70ea7c
handle alternate formate
Browse files- src/streamlit_app.py +0 -5
src/streamlit_app.py
CHANGED
@@ -137,11 +137,6 @@ 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 |
-
# 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]
|
|
|
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]
|