File size: 422 Bytes
9997478 fff3a21 9997478 cc2a8ff 9997478 89191ca 9997478 10f7d04 89191ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import requests
url = "https://cjell-Demo.hf.space/spam"
payload = {"text": "Congratulations! You won $1000! Click this link to claim your prize! htts://fakesite.com."}
response = requests.post(url, json=payload)
data = response.json()
print("Status:", response.status_code)
try:
print("JSON:", response.json())
except Exception:
print("Raw text:", response.text)
print("")
print(data['raw_output']['label']) |