Xenova HF Staff commited on
Commit
a034d9a
·
verified ·
1 Parent(s): 371689d

Update src/tts.ts

Browse files
Files changed (1) hide show
  1. src/tts.ts +1 -0
src/tts.ts CHANGED
@@ -9,6 +9,7 @@ let embeddingsPromise: Promise<Record<string, Float32Array>> | null = null;
9
 
10
  export async function loadPipeline(progressCallback: (info: any) => void) {
11
  return pipelinePromise ??= (async () => {
 
12
  const tts = (await pipeline("text-to-speech", MODEL_ID, {
13
  device: "webgpu",
14
  progress_callback: progressCallback,
 
9
 
10
  export async function loadPipeline(progressCallback: (info: any) => void) {
11
  return pipelinePromise ??= (async () => {
12
+ // @ts-ignore
13
  const tts = (await pipeline("text-to-speech", MODEL_ID, {
14
  device: "webgpu",
15
  progress_callback: progressCallback,