Skip to content

Commit 8f9b3bf

Browse files
committed
Changed lock and changed the onnx wasm path to point to node_modules. The wasm in this folder should be served during deployment
1 parent 7ef3ce0 commit 8f9b3bf

2 files changed

Lines changed: 2210 additions & 144 deletions

File tree

src/features/spam-demo/SpamDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let sessionFull : any = null;
88
const mergesPath : string = "public/vocab/merges_all_18k.txt";
99
const vocabPath : string = "public/vocab/vocab_all_18k.json";
1010
const modelPath : string = "public/onnx/mail_180226_02.onnx";
11-
const wasmPath: string = '/public/wasm/onnxruntime/';
11+
const wasmPath: string = '/node_modules/onnxruntime-web/dist/';
1212

1313
ort.env.wasm.wasmPaths = wasmPath;
1414
const LENTOKENS = 128;

0 commit comments

Comments
 (0)