Spaces:
Runtime error
Runtime error
Changed delimeter between team name and model name
Browse files
server.py
CHANGED
@@ -263,7 +263,7 @@ class LeaderboardServer:
|
|
263 |
|
264 |
model_link = data["metadata"]["link_to_model"]
|
265 |
model_title = data["metadata"]["team_name"] + "/" + data["metadata"]["model_name"]
|
266 |
-
model_title_abbr = self.abbreviate(data["metadata"]["team_name"],
|
267 |
local_results["model"] = f'<a href={xmlQuoteAttr(model_link)} title={xmlQuoteAttr(model_title)}>{xmlEscape(model_title_abbr, MARKDOWN_SPECIAL_CHARACTERS)}</a>'
|
268 |
release = data["metadata"].get("submission_timestamp")
|
269 |
release = time.strftime("%Y-%m-%d", time.gmtime(release)) if release else "N/A"
|
|
|
263 |
|
264 |
model_link = data["metadata"]["link_to_model"]
|
265 |
model_title = data["metadata"]["team_name"] + "/" + data["metadata"]["model_name"]
|
266 |
+
model_title_abbr = self.abbreviate(data["metadata"]["team_name"], 28) + "\n" + self.abbreviate(data["metadata"]["model_name"], 28)
|
267 |
local_results["model"] = f'<a href={xmlQuoteAttr(model_link)} title={xmlQuoteAttr(model_title)}>{xmlEscape(model_title_abbr, MARKDOWN_SPECIAL_CHARACTERS)}</a>'
|
268 |
release = data["metadata"].get("submission_timestamp")
|
269 |
release = time.strftime("%Y-%m-%d", time.gmtime(release)) if release else "N/A"
|