mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
refac
This commit is contained in:
parent
d95e5e0ba5
commit
29c781875d
@ -1,5 +1,9 @@
|
||||
import { env } from '@huggingface/transformers';
|
||||
import { KokoroTTS } from 'kokoro-js';
|
||||
|
||||
// TODO: Below doesn't work as expected, need to investigate further
|
||||
env.backends.onnx.wasm.wasmPaths = '/wasm/';
|
||||
|
||||
let tts;
|
||||
let isInitialized = false; // Flag to track initialization status
|
||||
const DEFAULT_MODEL_ID = 'onnx-community/Kokoro-82M-v1.0-ONNX'; // Default model
|
||||
|
Loading…
Reference in New Issue
Block a user