Download test_local.py from Sharry24/Sharry: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/spaces/Sharry24/Sharry/resolve/main/test_local.py
- Command line
-
hf download hf://spaces/Sharry24/Sharry/test_local.py
-
curl -L -o test_local.py https://huggingface.co/spaces/Sharry24/Sharry/resolve/main/test_local.py
175 Bytes
| import requests | |
| BASE = "http://127.0.0.1:7860" | |
| print(requests.get(f"{BASE}/health").json()) | |
| print(requests.get(f"{BASE}/api/search", params={"q": "lucifer"}).json().keys()) | |