proper readme
Browse files- README copy.md +0 -45
- README.md +40 -7
README copy.md
DELETED
|
@@ -1,45 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Topcoder Hugging Face Space Template with Docker + Next.js
|
| 3 |
-
emoji: 🗄️
|
| 4 |
-
colorFrom: blue
|
| 5 |
-
colorTo: purple
|
| 6 |
-
sdk: docker
|
| 7 |
-
pinned: false
|
| 8 |
-
app_port: 3000
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Topcoder Hugging Face Space Template with Docker + Next.js
|
| 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) in the Topcoder Huggig Face organization.
|
| 14 |
-
|
| 15 |
-
Original repo source: https://github.com/huggingface/transformers.js-examples/tree/main/next-server
|
| 16 |
-
|
| 17 |
-
## Instructions
|
| 18 |
-
|
| 19 |
-
1. Clone the repository:
|
| 20 |
-
|
| 21 |
-
```sh
|
| 22 |
-
git clone https://github.com/topcoder-platform/tc-huggingface-spaces.git
|
| 23 |
-
```
|
| 24 |
-
|
| 25 |
-
2. Change directory to the `spaces/space-demo-template` project:
|
| 26 |
-
|
| 27 |
-
```sh
|
| 28 |
-
cd tc-huggingface-spaces/spaces/space-demo-template
|
| 29 |
-
```
|
| 30 |
-
|
| 31 |
-
3. Install the dependencies:
|
| 32 |
-
|
| 33 |
-
```sh
|
| 34 |
-
npm install
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
4. Run the development server:
|
| 38 |
-
|
| 39 |
-
```sh
|
| 40 |
-
npm run dev
|
| 41 |
-
```
|
| 42 |
-
|
| 43 |
-
5. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
| 44 |
-
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.
|
| 45 |
-
7. Enjoy developing at Topcoder with Hugging Face.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -1,12 +1,45 @@
|
|
| 1 |
---
|
| 2 |
-
title: Space
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
-
|
| 9 |
-
short_description: Topcoder Hugging Face Space Template with Docker + Next.js
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Topcoder Hugging Face Space Template with Docker + Next.js
|
| 3 |
+
emoji: 🗄️
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
+
app_port: 3000
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Topcoder Hugging Face Space Template with Docker + Next.js
|
| 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) in the Topcoder Huggig Face organization.
|
| 14 |
+
|
| 15 |
+
Original repo source: https://github.com/huggingface/transformers.js-examples/tree/main/next-server
|
| 16 |
+
|
| 17 |
+
## Instructions
|
| 18 |
+
|
| 19 |
+
1. Clone the repository:
|
| 20 |
+
|
| 21 |
+
```sh
|
| 22 |
+
git clone https://github.com/topcoder-platform/tc-huggingface-spaces.git
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
2. Change directory to the `spaces/space-demo-template` project:
|
| 26 |
+
|
| 27 |
+
```sh
|
| 28 |
+
cd tc-huggingface-spaces/spaces/space-demo-template
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
3. Install the dependencies:
|
| 32 |
+
|
| 33 |
+
```sh
|
| 34 |
+
npm install
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
4. Run the development server:
|
| 38 |
+
|
| 39 |
+
```sh
|
| 40 |
+
npm run dev
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
5. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
| 44 |
+
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.
|
| 45 |
+
7. Enjoy developing at Topcoder with Hugging Face.
|