Skip to content

Files

Latest commit

Apr 21, 2025
7109a0a · Apr 21, 2025

History

History

next-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 25, 2024
Oct 23, 2024
Oct 22, 2024
Oct 22, 2024
Oct 23, 2024
Oct 25, 2024
Oct 22, 2024
Feb 5, 2025
Apr 21, 2025
Apr 21, 2025
Oct 22, 2024
Oct 22, 2024

README.md

title emoji colorFrom colorTo sdk pinned app_port
Next.js + Transformers.js Server Template
🗄️
blue
purple
docker
false
3000

next-server

This project, bootstrapped using create-next-app, demonstrates how to use @huggingface/transformers in Next.js.

Instructions

  1. Clone the repository:

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

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

    npm install
  4. Run the development server:

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

  6. You can start editing the page by modifying app/page.js (Next.js) and app/api/classify/route.js (Transformers.js). The page auto-updates as you edit the file.

Learn More

To learn more about Next.js, take a look at the following resources: