File size: 311 Bytes
9997478
 
 
 
fff3a21
9997478
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import requests

url = "https://cjell-Demo.hf.space/predict"

payload = {"text": "I Hate this I want to do bad things you suck!"}

response = requests.post(url, json=payload)

print("Status:", response.status_code)
try:
    print("JSON:", response.json())
except Exception:
    print("Raw text:", response.text)