[chore] reformat

This commit is contained in:
kwaroran
2023-09-08 02:34:11 +09:00
parent e109cd2dc8
commit 15f6443904

View File

@@ -51,7 +51,5 @@ export const runEmbedding = async (text: string):Promise<Float32Array> => {
await loadTransformer()
let extractor = await pipeline('feature-extraction', 'Xenova/all-MiniLM-L6-v2');
let result = await extractor(text, { pooling: 'mean', normalize: true });
console.log(result)
return result?.data ?? null;
}