File size: 318 Bytes
85c252e
 
 
 
 
 
0097ec5
 
1
2
3
4
5
6
7
8
import requests 
API_URL = "https://api-inference.huggingface.co/models/Dmyadav2001/Sentimental-Analysis" 
headers = {"Authorization": f'Bearer ${access_token}'} 
payload = { "inputs": "He will kill you", } 
response = requests.post(API_URL, headers=headers, json=payload) 
print(response.json()) 

print("hello dj 2")