dli-invest / reccomendation-engine

stock recommendation engine based on all my stonk data.
Apache License 2.0
1 stars 1 forks source link

Test stonk news headline with api call, fine if it fails #6

Open FriendlyUser opened 2 years ago

FriendlyUser commented 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.