new_demo / app.py
ypDarsh's picture
Update app.py
85c252e verified
raw
history blame contribute delete
318 Bytes
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")