metadata
title: Topcoder Hugging Face Space Template with Docker + Next.js
emoji: 🗄️
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
app_port: 3000
Topcoder Hugging Face Space Template with Docker + Next.js
This project, bootstrapped using create-next-app
, demonstrates how to use @huggingface/transformers
in Next.js in the Topcoder Huggig Face organization.
Original repo source: https://github.com/huggingface/transformers.js-examples/tree/main/next-server
Instructions
Clone the repository:
git clone https://github.com/topcoder-platform/tc-huggingface-spaces.git
Change directory to the
spaces/space-demo-template
project:cd tc-huggingface-spaces/spaces/space-demo-template
Install the dependencies:
npm install
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying
app/page.js
(Next.js) andapp/api/classify/route.js
(Transformers.js). The page auto-updates as you edit the file.Enjoy developing at Topcoder with Hugging Face.