Mistral_Test / hf.py
eesfeg's picture
token
df2a935
raw
history blame contribute delete
379 Bytes
import requests, os
headers = {
"Authorization": f"Bearer {os.getenv('HF_TOKEN')}",
"Content-Type": "application/json",
}
payload = {
"inputs": "Hello"
}
response = requests.post(
"https://router.huggingface.co/models/abdelac/Mistral_Test",
headers=headers,
json=payload,
)
print("STATUS:", response.status_code)
print("RAW RESPONSE:", response.text)