Skip to content

Commit 1ec32bf

Browse files
committed
Update next-server README
1 parent d81a223 commit 1ec32bf

File tree

1 file changed

+35
-29
lines changed

1 file changed

+35
-29
lines changed

next-server/README.md

+35-29
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,42 @@
1-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2-
3-
## Getting Started
4-
5-
First, run the development server:
6-
7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
15-
```
16-
17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18-
19-
You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
20-
21-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
1+
---
2+
title: Next.js + Transformers.js Server Template
3+
emoji: 🗄️
4+
colorFrom: blue
5+
colorTo: purple
6+
sdk: docker
7+
pinned: false
8+
app_port: 3000
9+
---
10+
11+
# next-server
12+
13+
This project, bootstrapped using generated by [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app), demonstrates how to use `@huggingface/transformers` in [Next.js](https://nextjs.org).
14+
15+
## Instructions
16+
17+
1. Clone the repository:
18+
```sh
19+
git clone https://github.com/huggingface/transformers.js-examples.git
20+
```
21+
2. Change directory to the `next-server` project:
22+
```sh
23+
cd transformers.js-examples/next-server
24+
```
25+
3. Install the dependencies:
26+
```sh
27+
npm install
28+
```
29+
4. Run the development server:
30+
```sh
31+
npm run dev
32+
```
33+
5. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
34+
35+
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.
2236

2337
## Learn More
2438

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

2741
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
2842
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29-
30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31-
32-
## Deploy on Vercel
33-
34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35-
36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

0 commit comments

Comments
 (0)