Skip to content

Latest commit

 

History

History

sveltekit

title emoji colorFrom colorTo sdk pinned app_port
SvelteKit + Transformers.js Server Template
🧩
yellow
red
docker
false
3000

sveltekit

This project, bootstrapped using create-svelte, demonstrates how to use @huggingface/transformers in SvelteKit.

Instructions

  1. Clone the repository:

    git clone https://github.com/huggingface/transformers.js-examples.git
  2. Change directory to the sveltekit project:

    cd transformers.js-examples/sveltekit
  3. Install the dependencies:

    npm install
  4. Run the development server:

    npm run dev
  5. Open http://localhost:5173 with your browser to see the result.

  6. You can start editing the page by modifying src/routes/+page.svelte (SvelteKit) and src/routes/api/classify/+server.js (Transformers.js). The page auto-updates as you edit the file.