Demo / test_toxic.py
cjell
more models
fff3a21
raw
history blame
311 Bytes
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)