| 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") |