yogami9 commited on
Commit
50d6d04
Β·
verified Β·
1 Parent(s): 54c5eeb

Fix: Update README.md - models load on demand

Browse files
Files changed (1) hide show
  1. README.md +10 -37
README.md CHANGED
@@ -8,50 +8,23 @@ pinned: false
8
  license: mit
9
  ---
10
 
11
- # NEED AI API (Fixed Version)
12
 
13
- Production REST API with robust error handling for NEED service marketplace.
14
 
15
- ## πŸš€ Live API
16
 
17
- **Base URL**: `https://yogami9-need-ai-api.hf.space`
18
-
19
- ## πŸ“š Endpoints
20
-
21
- All endpoints return detailed error messages if models are unavailable.
22
-
23
- - GET `/health` - System health and model availability
24
- - POST `/api/category` - Predict service category
25
- - POST `/api/chat` - Answer support questions
26
- - POST `/api/service` - Generate service descriptions
27
  - POST `/api/search` - Semantic search
28
  - POST `/api/moderate` - Content moderation
29
 
30
- ## 🐍 Usage
31
-
32
- ```python
33
- import requests
34
-
35
- # Check health
36
- response = requests.get("https://yogami9-need-ai-api.hf.space/health")
37
- print(response.json())
38
-
39
- # Use API
40
- response = requests.post(
41
- "https://yogami9-need-ai-api.hf.space/api/category",
42
- json={"query": "I need house cleaning"}
43
- )
44
- print(response.json())
45
- ```
46
-
47
- ## πŸ”§ Troubleshooting
48
 
49
- If models are not loading:
50
- 1. Check models exist: https://huggingface.co/yogami9
51
- 2. Verify models are PUBLIC
52
- 3. Wait 2-3 minutes for first load
53
- 4. Check logs for specific errors
54
 
55
- ## πŸ“§ Contact
56
 
57
  needserviceapp@gmail.com
 
8
  license: mit
9
  ---
10
 
11
+ # NEED AI API
12
 
13
+ Production API for NEED service marketplace AI.
14
 
15
+ ## πŸš€ Endpoints
16
 
17
+ - GET `/health` - Health check
18
+ - POST `/api/category` - Predict category
19
+ - POST `/api/chat` - Answer questions
20
+ - POST `/api/service` - Generate descriptions
 
 
 
 
 
 
21
  - POST `/api/search` - Semantic search
22
  - POST `/api/moderate` - Content moderation
23
 
24
+ ## πŸ’‘ Note
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
+ Models load on first request (30-60 seconds). Subsequent requests are fast!
 
 
 
 
27
 
28
+ ## πŸ“§ Support
29
 
30
  needserviceapp@gmail.com