ugonna commited on
Commit
f4d414f
·
verified ·
1 Parent(s): 99fe621

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -6
README.md CHANGED
@@ -1,11 +1,28 @@
1
  ---
2
- title: NaiBot API
3
- emoji: 🐠
4
- colorFrom: pink
5
- colorTo: gray
 
6
  sdk: docker
7
- pinned: false
8
- short_description: Nailand Bot api
9
  ---
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ ---
3
+ title: NAI Bot API
4
+ emoji: 🤖
5
+ colorFrom: blue
6
+ colorTo: purple
7
  sdk: docker
8
+ app_port: 7860
 
9
  ---
10
 
11
+ # NAI Bot API
12
+
13
+ FastAPI endpoint for text generation models.
14
+
15
+ ## API Endpoints
16
+
17
+ - `GET /` - Service information
18
+ - `GET /health` - Health check
19
+ - `POST /generate` - Generate text from a prompt
20
+
21
+ ## Usage Example
22
+
23
+ ```bash
24
+ curl -X POST https://your-space.hf.space/generate \
25
+ -H "Content-Type: application/json" \
26
+ -d '{"prompt": "Hello, how are you?", "max_tokens": 100}'
27
+
28
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference