tzmtwtr commited on
Commit
af57887
1 Parent(s): 5ef562f
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -1,6 +1,6 @@
1
  import { env, pipeline } from "@xenova/transformers";
2
 
3
- env.localModelPath = '/node_modules/embedding/model'
4
 
5
  let pipe = null;
6
  const piping = pipeline("feature-extraction", "sentence-transformers/paraphrase-multilingual-mpnet-base-v2", { local_files_only: true, quantized: true }).then(p => { pipe = p; })
 
1
  import { env, pipeline } from "@xenova/transformers";
2
 
3
+ env.localModelPath = __dirname + '/model'
4
 
5
  let pipe = null;
6
  const piping = pipeline("feature-extraction", "sentence-transformers/paraphrase-multilingual-mpnet-base-v2", { local_files_only: true, quantized: true }).then(p => { pipe = p; })