Sync face embeddings only for internal users
This commit is contained in:
parent
75814415ce
commit
6613d57989
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue