diff --git a/web-app/src/routes/hub/index.tsx b/web-app/src/routes/hub/index.tsx index 7ee5d0799..5935d4538 100644 --- a/web-app/src/routes/hub/index.tsx +++ b/web-app/src/routes/hub/index.tsx @@ -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) }