Fixed kokoro loading process.
This commit is contained in:
@@ -95,8 +95,8 @@
|
||||
// Initialize the model
|
||||
const model_id = "onnx-community/Kokoro-82M-v1.0-ONNX";
|
||||
this.instance = await this.kokoroTTS.from_pretrained(model_id, {
|
||||
dtype: "q8", // Use quantized model for better performance
|
||||
device: "webgpu", // Use WebGL for better performance
|
||||
dtype: "q8",
|
||||
device: "webgpu",
|
||||
progress_callback: (progress) => {
|
||||
// Skip progress updates if progress is NaN/undefined (cache loading)
|
||||
if (progress === undefined || isNaN(progress)) {
|
||||
|
||||
Reference in New Issue
Block a user