Update README.md
Browse files
README.md
CHANGED
@@ -1,10 +1,42 @@
|
|
1 |
---
|
2 |
-
title: Next Client Template
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
pinned: false
|
|
|
8 |
---
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: Next.js + Transformers.js Client Template
|
3 |
+
emoji: 🗄️
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: purple
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
+
app_port: 3000
|
9 |
---
|
10 |
|
11 |
+
# next-client
|
12 |
+
|
13 |
+
This project, bootstrapped using [`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-client` project:
|
22 |
+
```sh
|
23 |
+
cd transformers.js-examples/next-client
|
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/classify.js` (Transformers.js). The page auto-updates as you edit the file.
|
36 |
+
|
37 |
+
## Learn More
|
38 |
+
|
39 |
+
To learn more about Next.js, take a look at the following resources:
|
40 |
+
|
41 |
+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
42 |
+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|