File size: 385 Bytes
72724ba |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import requests
url = "https://Propvia-Testing.hf.space/spam"
payload = {"text": "Congratulations you have won $1000! Click the link to claim your prize!"}
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(data['label']) |