Spaces:
Runtime error
Runtime error
Fix
Browse files
server.py
CHANGED
@@ -106,8 +106,8 @@ class LeaderboardServer:
|
|
106 |
local_results[task + "_" + metric] = metric_value
|
107 |
|
108 |
model_link = data["metadata"]["link_to_model"]
|
109 |
-
model_title = data["metadata"]["
|
110 |
-
model_title_abbr = self.abbreviate(data["metadata"]["
|
111 |
local_results["model"] = f'<a href="{model_link}" title="{model_title}">{model_title_abbr}</a>'
|
112 |
release = data["metadata"].get("submission_timestamp")
|
113 |
release = time.strftime("%Y-%m-%d", time.gmtime(release)) if release else "N/A"
|
|
|
106 |
local_results[task + "_" + metric] = metric_value
|
107 |
|
108 |
model_link = data["metadata"]["link_to_model"]
|
109 |
+
model_title = data["metadata"]["team_name"] + "/" + data["metadata"]["model_name"]
|
110 |
+
model_title_abbr = self.abbreviate(data["metadata"]["team_name"], 14) + "/" + self.abbreviate(data["metadata"]["model_name"], 14)
|
111 |
local_results["model"] = f'<a href="{model_link}" title="{model_title}">{model_title_abbr}</a>'
|
112 |
release = data["metadata"].get("submission_timestamp")
|
113 |
release = time.strftime("%Y-%m-%d", time.gmtime(release)) if release else "N/A"
|