Skip to content

Commit

Permalink
Change title for HELM leaderboards (#3117)
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanmai authored Oct 31, 2024
1 parent 2abee24 commit 6425ff6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions helm-frontend/src/components/NavDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ function NavDropdown() {
ProjectMetadata | undefined
>();

useEffect(() => {
if (
currProjectMetadata &&
currProjectMetadata.title &&
currProjectMetadata.title !== "All Leaderboards"
) {
const titlePrefix =
currProjectMetadata.title === "Lite" ||
currProjectMetadata.title === "Classic"
? "HELM " + currProjectMetadata.title
: currProjectMetadata.title;
document.title =
titlePrefix + " - Holistic Evaluation of Language Models (HELM)";
}
}, [currProjectMetadata]);

useEffect(() => {
fetch(
"https://raw.githubusercontent.com/stanford-crfm/helm/main/helm-frontend/project_metadata.json",
Expand Down

0 comments on commit 6425ff6

Please sign in to comment.