Views
No views yet
1{
2 "inputs": {
3 "content": "Your content text here",
4 "meta_description": "Optional meta description"
5 }
6}1[
2 {
3 "label": "attributed",
4 "score": 0.75
5 },
6 {
7 "label": "unattributed",
8 "score": 0.25
9 }
10]1import requests
2
3api_url = "https://api-inference.huggingface.co/models/athenahq/ACE-classifier-doc2vec"
4headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
5
6data = {
7 "inputs": {
8 "content": "Machine learning models for content attribution analysis",
9 "meta_description": "A comprehensive guide to ML-based content classification"
10 }
11}
12
13response = requests.post(api_url, headers=headers, json=data)
14result = response.json()
15print(result)1curl -X POST \
2 https://api-inference.huggingface.co/models/athenahq/ACE-classifier-doc2vec \
3 -H "Authorization: Bearer YOUR_HF_TOKEN" \
4 -H "Content-Type: application/json" \
5 -d '{
6 "inputs": {
7 "content": "Your content text here",
8 "meta_description": "Optional meta description"
9 }
10 }'handler.py: Custom inference handlermodel_summary.json: Overview of all trained modelsrank_1_*_classifier.pkl: Best performing classifierrank_1_*_doc2vec.model: Best performing Doc2Vec modelrank_1_*_metadata.json: Model metadata and configuration