I have this file: import { HfInference } from '@huggingface/inference' // Create your…
- User
I have this file: import { HfInference } from '@huggingface/inference'
// Create your Hugging Face Token: https://huggingface.co/settings/tokens // Set your Hugging Face Token: https://scrimba.com/dashboard#env // Learn more: https://scrimba.com/links/env-variables const hf = new HfInference(process.env.HF_TOKEN)
// Hugging Face Inference API docs: https://huggingface.co/docs/huggingface.js/inference/README
const text = "It's an exciting time to be an A.I. engineer."
const response = await hf.textToSpeech({ inputs: text, model: "espnet/kan-bayashi_ljspeech_vits" })
console.log(response)
And I get this error in the console: ! Error: An error occurred while fetching the blob
Do you know why?
- Assistant