Open FriendlyUser opened 2 years ago
API_URL = "https://api-inference.huggingface.co/models/FriendlyUser/autotrain-stonk_news_headlines-1435453651" headers = {"Authorization": "Bearer "}
def query(payload): response = requests.post(API_URL, headers=headers, json=payload) return response.json()
output = query({ "inputs": "I like you. I love you", })
Try to add it in when attempting to recommend news.
API_URL = "https://api-inference.huggingface.co/models/FriendlyUser/autotrain-stonk_news_headlines-1435453651" headers = {"Authorization": "Bearer "}
def query(payload): response = requests.post(API_URL, headers=headers, json=payload) return response.json()
output = query({ "inputs": "I like you. I love you", })
Try to add it in when attempting to recommend news.