mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
onnx runtime to web
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import { pipeline, TextClassificationPipeline } from 'sillytavern-transformers';
|
import { pipeline, TextClassificationPipeline, env } from 'sillytavern-transformers';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
|
env.backends.onnx = 'onnxruntime-web';
|
||||||
|
|
||||||
class PipelineAccessor {
|
class PipelineAccessor {
|
||||||
/**
|
/**
|
||||||
* @type {TextClassificationPipeline}
|
* @type {TextClassificationPipeline}
|
||||||
|
Reference in New Issue
Block a user