Sync face embeddings only for internal users

This commit is contained in:
Manav Rathi 2024-05-14 15:57:08 +05:30
parent 75814415ce
commit 6613d57989
No known key found for this signature in database

View file

@ -133,6 +133,7 @@ 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")`
@ -703,7 +704,7 @@ export default function Gallery() {
await syncMapEnabled();
await syncCLIPEmbeddings();
const electron = globalThis.electron;
if (electron) {
if (isInternalUserForML() && electron) {
await syncFileEmbeddings();
}
if (clipService.isPlatformSupported()) {