Spaces:
Running
Running
Download test_deployed.py from Leon4gr45/needle: direct link, hf CLI and curl.
- Browser
- Download file 253 Bytes
-
https://huggingface.co/spaces/Leon4gr45/needle/resolve/main/test_deployed.py
- Command line
-
hf download hf://spaces/Leon4gr45/needle/test_deployed.py
-
curl -L -o test_deployed.py https://huggingface.co/spaces/Leon4gr45/needle/resolve/main/test_deployed.py
253 Bytes
| import httpx | |
| def test(): | |
| # 1. Test /health which is unauthenticated | |
| print("Testing /health") | |
| res = httpx.get('https://leon4gr45-needle.hf.space/health') | |
| print("Health:", res.status_code, res.text) | |
| if __name__ == '__main__': | |
| test() | |