update
Browse files
index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import { env, pipeline } from "@xenova/transformers";
|
2 |
|
3 |
-
env.localModelPath = '/
|
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; })
|