Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix computeTextEmbedding

Abhinavd7170f61cee7
diff --git a/src/services/clipService.ts b/src/services/clipService.ts
index 4fa3c04116..a6f69055bb 100644
--- a/src/services/clipService.ts
+++ b/src/services/clipService.ts
@@ -120,7 +120,7 @@ export async function computeTextEmbedding(
text: string
): Promise<Float32Array> {
try {
- const clipModelPath = getClipModelPath();
+ const clipModelPath = await getClipModelPath();
const ggmlclipPath = getGGMLClipPath();
const cmd = TEXT_EMBEDDING_EXTRACT_CMD.map((cmdPart) => {
if (cmdPart === GGMLCLIP_PATH_PLACEHOLDER) {