Spaces:
Sleeping
Sleeping
| import json | |
| import requests | |
| url = "https://ktoan911-fake-crypto-claim-detector.hf.space/verify" | |
| payload = {"claim": "Tỷ phú Elon Musk tặng 1000 Bitcoin trên X"} | |
| headers = {"Content-Type": "application/json"} | |
| print(f"Sending POST to {url}...") | |
| try: | |
| response = requests.post(url, json=payload, headers=headers) | |
| print(f"Status Code: {response.status_code}") | |
| print("Response JSON:") | |
| print(json.dumps(response.json(), indent=4, ensure_ascii=False)) | |
| except Exception as e: | |
| print("Error calling API:", e) | |