fix computeTextEmbedding
This commit is contained in:
parent
1f24d6dce3
commit
d7170f61ce
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ export async function computeTextEmbedding(
|
||||||
text: string
|
text: string
|
||||||
): Promise<Float32Array> {
|
): Promise<Float32Array> {
|
||||||
try {
|
try {
|
||||||
const clipModelPath = getClipModelPath();
|
const clipModelPath = await getClipModelPath();
|
||||||
const ggmlclipPath = getGGMLClipPath();
|
const ggmlclipPath = getGGMLClipPath();
|
||||||
const cmd = TEXT_EMBEDDING_EXTRACT_CMD.map((cmdPart) => {
|
const cmd = TEXT_EMBEDDING_EXTRACT_CMD.map((cmdPart) => {
|
||||||
if (cmdPart === GGMLCLIP_PATH_PLACEHOLDER) {
|
if (cmdPart === GGMLCLIP_PATH_PLACEHOLDER) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue