onnx runtime to web

This commit is contained in:
Cohee 2023-09-09 16:42:16 +03:00
parent b605b940eb
commit 307e666c27

View File

@ -1,6 +1,8 @@
import { pipeline, TextClassificationPipeline } from 'sillytavern-transformers';
import { pipeline, TextClassificationPipeline, env } from 'sillytavern-transformers';
import path from 'path';
env.backends.onnx = 'onnxruntime-web';
class PipelineAccessor {
/**
* @type {TextClassificationPipeline}