Skip to content

Commit

Permalink
chore: move remote models to bottom of the models hub
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Aug 27, 2024
1 parent 52aa87a commit 6e22c81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/screens/Hub/ModelList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ const ModelList = ({ models }: Props) => {
}
})
featuredModels.sort((m1, m2) => m1.metadata.size - m2.metadata.size)
remoteModels.sort((m1, m2) => m1.name.localeCompare(m2.name))
localModels.sort((m1, m2) => m1.metadata.size - m2.metadata.size)
remainingModels.sort((m1, m2) => m1.metadata.size - m2.metadata.size)
remoteModels.sort((m1, m2) => m1.name.localeCompare(m2.name))
return [
...featuredModels,
...remoteModels,
...localModels,
...remainingModels,
...remoteModels,
]
}, [models, downloadedModels])

Expand Down

0 comments on commit 6e22c81

Please sign in to comment.