mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-31 11:35:37 +01:00
onnx runtime to web
This commit is contained in:
parent
b605b940eb
commit
307e666c27
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user