fix: duplicate HF search results
This commit is contained in:
parent
ace8214d4d
commit
da08becd93
@ -194,7 +194,11 @@ function Hub() {
|
||||
if (repoInfo) {
|
||||
const catalogModel = convertHfRepoToCatalogModel(repoInfo)
|
||||
if (
|
||||
!sources.some((s) => s.model_name === catalogModel.model_name)
|
||||
!sources.some(
|
||||
(s) =>
|
||||
catalogModel.model_name.trim().split('/').pop() ===
|
||||
s.model_name.trim()
|
||||
)
|
||||
) {
|
||||
setHuggingFaceRepo(catalogModel)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user