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

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

payload = {"text": "I do not agree with the policies being put in place by our city council."}

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

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