Download test_insert.py from mrmayankmathurorg/Customer-EMAIL-Agent: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/mrmayankmathurorg/Customer-EMAIL-Agent/resolve/main/test_insert.py
- Command line
-
hf download hf://spaces/mrmayankmathurorg/Customer-EMAIL-Agent/test_insert.py
-
curl -L -o test_insert.py https://huggingface.co/spaces/mrmayankmathurorg/Customer-EMAIL-Agent/resolve/main/test_insert.py
397 Bytes
| import asyncio | |
| from httpx import AsyncClient | |
| import requests | |
| import json | |
| data = { | |
| "sender": "test@test.com", | |
| "subject": "test", | |
| "body": "test output" | |
| } | |
| res = requests.post( | |
| "https://mrmayankmathurorg-customer-email-agent.hf.space/api/v1/process-email", | |
| json=data, | |
| headers={"X-API-Token": "dev_token_change_me"} | |
| ) | |
| print("Status:", res.status_code) | |
| print("Body:", res.text) | |