Views
No views yet
GET /GET /healthPOST /predict1{
2 "product_description": "Hydrating facial cleanser with ceramides and hyaluronic acid for all skin types"
3}1{
2 "product_description": "Hydrating facial cleanser...",
3 "recommended_skin_type": "Dry Skin",
4 "confidence": 0.85,
5 "all_probabilities": {
6 "Acne-Prone Skin": 0.05,
7 "Anti-Aging": 0.03,
8 "Brightening": 0.02,
9 "Dry Skin": 0.85,
10 "Normal": 0.03,
11 "Oily": 0.01,
12 "Oily Skin": 0.01
13 }
14}POST /batch-predict1import requests
2
3url = "https://your-space-url/predict"
4data = {
5 "product_description": "Lightweight gel moisturizer with hyaluronic acid"
6}
7
8response = requests.post(url, json=data)
9print(response.json())