Views
No views yet
1import requests
2
3API_URL = "https://your-endpoint.aws.endpoints.huggingface.cloud"
4headers = {"Authorization": "Bearer YOUR_TOKEN"}
5
6response = requests.post(API_URL, headers=headers, json={
7 "inputs": "Patient appointment confirmation for tomorrow"
8})
9
10result = response.json()
11# {
12# "category": {"label": "appointments", "confidence": 0.95},
13# "subcategory": {"label": "appointments.confirmation", "confidence": 0.92}
14# }model_checkpoint.pt: Complete model checkpointtokenizer/: HuggingFace tokenizerhandler.py: Inference endpoint handler