Add limits

This commit is contained in:
Manav Rathi
2024-08-28 20:10:23 +05:30
parent 3563c20997
commit 5aae59cdda
3 changed files with 3 additions and 4 deletions

View File

@@ -397,7 +397,7 @@ const ManageML: React.FC<ManageMLProps> = ({
</MenuItemGroup>
<MenuSectionTitle
title={ut(
"Create in-memory clusters from arbitrary 900 photos. Nothing will be saved or synced to remote. You can view the results in search dropdown.",
"Create in-memory clusters from arbitrary 2k photos. Nothing will be saved or synced to remote. You can view the results in search dropdown.",
)}
/>
</Box>

View File

@@ -168,7 +168,7 @@ export const clusterFaces = async (faceIndexes: FaceIndex[]) => {
const t = Date.now();
// A flattened array of faces.
const faces = [...enumerateFaces(faceIndexes)].slice(0, 900);
const faces = [...enumerateFaces(faceIndexes)].slice(0, 2000);
// Start with the clusters we already have (either from a previous indexing,
// or fetched from remote).

View File

@@ -330,8 +330,7 @@ export const indexNewUpload = (enteFile: EnteFile, uploadItem: UploadItem) => {
* WIP! Don't enable, dragon eggs are hatching here.
*/
export const wipClusterEnable = async (): Promise<boolean> =>
!!process.env.NEXT_PUBLIC_ENTE_WIP_CL &&
isDevBuild &&
(!!process.env.NEXT_PUBLIC_ENTE_WIP_CL && isDevBuild) ||
(await isInternalUser());
// // TODO-Cluster temporary state here