Revert WASM worker threading

a2c9e70082bdf7d8575af33b22fb21b3ff4df778

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
src/transformers.mjs+1 -1
@@ -6,7 +6,7 @@ configureTransformers();
66
7function configureTransformers() {7function configureTransformers() {
8 // Limit the number of threads to 1 to avoid issues on Android8 // Limit the number of threads to 1 to avoid issues on Android
9 env.backends.onnx.wasm.numThreads = process.platform === 'android' ? 1 : 0;9 env.backends.onnx.wasm.numThreads = 1;
10 // Use WASM from a local folder to avoid CDN connections10 // Use WASM from a local folder to avoid CDN connections
11 env.backends.onnx.wasm.wasmPaths = path.join(process.cwd(), 'dist') + path.sep;11 env.backends.onnx.wasm.wasmPaths = path.join(process.cwd(), 'dist') + path.sep;
12}12}