Spaces:
Runtime error
Runtime error
Update README format
Browse files
README.md
CHANGED
@@ -42,14 +42,6 @@ data = {
|
|
42 |
"prompt": "Hello, how are you?",
|
43 |
"max_length": 2048,
|
44 |
"num_beams": 3,
|
45 |
-
"early_stopping": True,
|
46 |
-
"no_repeat_ngram_size": 3
|
47 |
-
}
|
48 |
-
|
49 |
-
response = requests.post(url, json=data)
|
50 |
-
result = response.json()
|
51 |
-
print(result["generated_text"]) # This will contain your generated text
|
52 |
-
```
|
53 |
pinned: false
|
54 |
---
|
55 |
|
@@ -65,8 +57,6 @@ A FastAPI-based server for interacting with the LLaMA 7B model.
|
|
65 |
|
66 |
## API Usage
|
67 |
|
68 |
-
### Text Generation
|
69 |
-
|
70 |
Make a POST request to `/generate` with the following JSON body:
|
71 |
|
72 |
```json
|
|
|
42 |
"prompt": "Hello, how are you?",
|
43 |
"max_length": 2048,
|
44 |
"num_beams": 3,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
pinned: false
|
46 |
---
|
47 |
|
|
|
57 |
|
58 |
## API Usage
|
59 |
|
|
|
|
|
60 |
Make a POST request to `/generate` with the following JSON body:
|
61 |
|
62 |
```json
|