From 074e867886694ce5f20cdeff63e1dc0576fbff74 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 30 May 2024 16:08:07 +0530 Subject: [PATCH] Disable the download for now --- web/apps/photos/src/pages/gallery/index.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/web/apps/photos/src/pages/gallery/index.tsx b/web/apps/photos/src/pages/gallery/index.tsx index 4a3fbe9b52..d375e48fc8 100644 --- a/web/apps/photos/src/pages/gallery/index.tsx +++ b/web/apps/photos/src/pages/gallery/index.tsx @@ -85,10 +85,7 @@ import { getSectionSummaries, } from "services/collectionService"; import downloadManager from "services/download"; -import { - syncCLIPEmbeddings, - syncFaceEmbeddings, -} from "services/embeddingService"; +import { syncCLIPEmbeddings } from "services/embeddingService"; import { syncEntities } from "services/entityService"; import { getLocalFiles, syncFiles } from "services/fileService"; import locationSearchService from "services/locationSearchService"; @@ -130,7 +127,6 @@ import { } from "utils/file"; import { isArchivedFile } from "utils/magicMetadata"; import { getSessionExpiredMessage } from "utils/ui"; -import { isInternalUserForML } from "utils/user"; import { getLocalFamilyData } from "utils/user/family"; export const DeadCenter = styled("div")` @@ -720,7 +716,9 @@ export default function Gallery() { const electron = globalThis.electron; if (electron) { await syncCLIPEmbeddings(); - if (isInternalUserForML()) await syncFaceEmbeddings(); + // TODO-ML(MR): Disable fetch until we start storing it in the + // same place as the local ones. + // if (isInternalUserForML()) await syncFaceEmbeddings(); } if (clipService.isPlatformSupported()) { void clipService.scheduleImageEmbeddingExtraction();