Added hugging face token
This commit is contained in:
@@ -32,7 +32,7 @@ export class Audio {
|
||||
worker.on('exit', (code) => {
|
||||
if(code !== 0 && !aborted) reject(new Error(`Worker exited with code ${code}`));
|
||||
});
|
||||
worker.postMessage({file, model, speaker, modelDir: this.ai.options.path});
|
||||
worker.postMessage({file, model, speaker, modelDir: this.ai.options.path, token: this.ai.options.hfToken});
|
||||
});
|
||||
return Object.assign(p, { abort });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user