Skip to content

Commit

Permalink
Rename HuggingFace URL function
Browse files Browse the repository at this point in the history
  • Loading branch information
dadmobile committed Jun 3, 2024
1 parent f03f305 commit 8432304
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/components/ModelZoo/ModelStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ function stableSort<T>(
return stabilizedThis.map((el) => el[0]);
}

// returns a URL to link to for agreeing to gate model terms
function getGatedModelURL(model) {
// returns a URL to the model on HuggingFace based on repo name
function getModelHuggingFaceURL(model) {
const repo_id = model.huggingface_repo ? model.huggingface_repo : model.id;
return "https://huggingface.co/" + repo_id;
}
Expand Down Expand Up @@ -339,7 +339,7 @@ export default function ModelStore() {
<td>
<Typography level="title-md" marginLeft={2}>
{row.gated &&
<a href={getGatedModelURL(row)} target="_blank">
<a href={getModelHuggingFaceURL(row)} target="_blank">
<LockKeyholeIcon />
</a>
}
Expand Down

0 comments on commit 8432304

Please sign in to comment.