Skip to content

Commit 917036b

Browse files
committed
do not throw
1 parent df3dca7 commit 917036b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/calculateEmbeddings.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ let vocab = null
324324
const modelInitPromise = (async () => {
325325
try {
326326
await initializeModelAndVocab()
327-
} catch {}
327+
} catch {
328+
// do not throw
329+
}
328330
})()
329331

330332
export default async function calculateEmbeddings(text) {

0 commit comments

Comments
 (0)