fix computeTextEmbedding

This commit is contained in:
Abhinav 2023-10-25 18:59:09 +05:30
parent 1f24d6dce3
commit d7170f61ce

View file

@ -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) {