mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use transformers WASM binaries from a local folder
This commit is contained in:
@@ -4,6 +4,8 @@ import { getConfig } from './util.js';
|
||||
|
||||
// Limit the number of threads to 1 to avoid issues on Android
|
||||
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;
|
||||
|
||||
class PipelineAccessor {
|
||||
/**
|
||||
|
@@ -4,6 +4,8 @@ import { getConfig } from './util.js';
|
||||
|
||||
// Limit the number of threads to 1 to avoid issues on Android
|
||||
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;
|
||||
|
||||
class PipelineAccessor {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user