Spaces:
Sleeping
Sleeping
| import requests, os | |
| headers = { | |
| "Authorization": f"Bearer {os.getenv('HF_TOKEN')}", | |
| "Content-Type": "application/json", | |
| } | |
| payload = { | |
| "inputs": "Hello" | |
| } | |
| response = requests.post( | |
| "https://router.huggingface.co/models/abdelac/Mistral_Test", | |
| headers=headers, | |
| json=payload, | |
| ) | |
| print("STATUS:", response.status_code) | |
| print("RAW RESPONSE:", response.text) | |