Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
@@ -1,39 +1,11 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
-
sdk_version: "20.10.7"
|
8 |
-
app_file: app.py
|
9 |
pinned: false
|
|
|
10 |
---
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
This app generates text based on the input prompt using GPT-2.
|
15 |
-
|
16 |
-
## Running the App
|
17 |
-
|
18 |
-
You can run the app by following these steps:
|
19 |
-
|
20 |
-
1. **Build the Docker image:**
|
21 |
-
|
22 |
-
```bash
|
23 |
-
docker build -t text-gen-app .
|
24 |
-
```
|
25 |
-
|
26 |
-
2. **Run the Docker container:**
|
27 |
-
|
28 |
-
```bash
|
29 |
-
docker run -p 5000:5000 text-gen-app
|
30 |
-
```
|
31 |
-
|
32 |
-
## Usage
|
33 |
-
|
34 |
-
Send a POST request to the `/generate` endpoint with a JSON body containing the `prompt` field:
|
35 |
-
|
36 |
-
```json
|
37 |
-
{
|
38 |
-
"prompt": "Once upon a time"
|
39 |
-
}
|
|
|
1 |
---
|
2 |
+
title: Text2textwithDockers
|
3 |
+
emoji: 🏃
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: red
|
6 |
sdk: docker
|
|
|
|
|
7 |
pinned: false
|
8 |
+
license: mit
|
9 |
---
|
10 |
|
11 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|