mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Revert WASM worker threading
This commit is contained in:
@@ -6,7 +6,7 @@ configureTransformers();
|
||||
|
||||
function configureTransformers() {
|
||||
// Limit the number of threads to 1 to avoid issues on Android
|
||||
env.backends.onnx.wasm.numThreads = process.platform === 'android' ? 1 : 0;
|
||||
env.backends.onnx.wasm.numThreads = 1;
|
||||
// Use WASM from a local folder to avoid CDN connections
|
||||
env.backends.onnx.wasm.wasmPaths = path.join(process.cwd(), 'dist') + path.sep;
|
||||
}
|
||||
|
Reference in New Issue
Block a user