diff --git a/src/worker/inference.worker.ts b/src/worker/inference.worker.ts index be843dd..f6bb2c2 100644 --- a/src/worker/inference.worker.ts +++ b/src/worker/inference.worker.ts @@ -31,7 +31,7 @@ import { // them at /ort/* (src/index.ts; copied into dist/ort by scripts/build.ts) // and the service worker runtime-caches them cache-first (src/pwa/sw.ts). if (env.backends.onnx.wasm) { - env.backends.onnx.wasm.wasmPaths = "ort/"; + env.backends.onnx.wasm.wasmPaths = "./ort/"; } // `lib: ["DOM"]` types `self` as Window; give it the worker-scope shape we use.