| 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']) |