1
0
mirror of https://github.com/SillyTavern/SillyTavern.git synced 2025-03-01 18:37:41 +01:00

onnx runtime to web

This commit is contained in:
Cohee 2023-09-09 16:42:16 +03:00
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}