Examples for hugging faces inference api.
To use it create a hugging face account and sign up for a api key. Then create a .env file with your key in it, like this:
VITE_HUGGINGFACE_API_TOKEN=YOUR_API-KEY_HERE
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open