Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

wrap behind internal user

laurenspriem45b53090a8b1
diff --git a/mobile/apps/photos/lib/utils/ml_util.dart b/mobile/apps/photos/lib/utils/ml_util.dart
index 20e4a75329..d4fbbbc427 100644
--- a/mobile/apps/photos/lib/utils/ml_util.dart
+++ b/mobile/apps/photos/lib/utils/ml_util.dart
@@ -631,7 +631,9 @@ Future<List<FileMLInstruction>> hydrateRemoteMLDataForInstructions(
return instructions.where((instruction) => instruction.pendingML).toList();
}
_logger.info("fetching embeddings for ${ids.length} files");
- final res = await _fetchFilesDataForMlHydrationWithRecovery(pendingIndex);
+ final res = flagService.internalUser
+ ? await _fetchFilesDataForMlHydrationWithRecovery(pendingIndex)
+ : await fileDataService.getFilesData(ids);
_logger.info("embeddingResponse ${res.debugLog()}");
final List<Face> faces = [];
final List<ClipEmbedding> clipEmbeddings = [];