Skip to content

armgit / ente

Public Imported from GitHub
0

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

Tweak and lint

Manav Rathifdcc6b699715
diff --git a/web/apps/photos/src/services/searchService.ts b/web/apps/photos/src/services/searchService.ts
index fc89877759..acf12a1e94 100644
--- a/web/apps/photos/src/services/searchService.ts
+++ b/web/apps/photos/src/services/searchService.ts
@@ -183,9 +183,7 @@ export async function getMLStatusSuggestion(): Promise<Suggestion> {
label = t("INDEXING_SCHEDULED");
break;
case "indexing":
- label = t("ANALYZING_PHOTOS", {
- indexStatus: status,
- });
+ label = t("ANALYZING_PHOTOS", { indexStatus: status });
break;
case "clustering":
label = t("INDEXING_PEOPLE", { indexStatus: status });
diff --git a/web/apps/photos/src/types/search/index.ts b/web/apps/photos/src/types/search/index.ts
index 575cb0a9c7..130471ae76 100644
--- a/web/apps/photos/src/types/search/index.ts
+++ b/web/apps/photos/src/types/search/index.ts
@@ -1,5 +1,5 @@
import { FILE_TYPE } from "@/media/file-type";
-import type { FaceIndexingStatus } from "@/new/photos/services/ml";
+import type { MLStatus } from "@/new/photos/services/ml";
import type { Person } from "@/new/photos/services/ml/people";
import { EnteFile } from "@/new/photos/types/file";
import { City } from "services/locationSearchService";
@@ -31,7 +31,7 @@ export interface Suggestion {
| DateValue
| number[]
| Person
- | FaceIndexingStatus
+ | MLStatus
| LocationTagData
| City
| FILE_TYPE
diff --git a/web/packages/new/photos/services/ml/clip.ts b/web/packages/new/photos/services/ml/clip.ts
index 91a0270dc8..0726929e2a 100644
--- a/web/packages/new/photos/services/ml/clip.ts
+++ b/web/packages/new/photos/services/ml/clip.ts
@@ -26,7 +26,7 @@ export const clipIndexingVersion = 1;
* trained) encoders - one for images, and one for text - that both map to the
* same embedding space.
*
- * We use this for natural language search within the app:
+ * We use this for natural language search (aka "magic search") within the app:
*
* 1. Pre-compute an embedding for each image.
*