Download send_request.py from Rulga/Doc-chat: direct link, hf CLI and curl.
- Browser
- Download file 267 Bytes
-
https://huggingface.co/spaces/Rulga/Doc-chat/resolve/main/send_request.py
- Command line
-
hf download hf://spaces/Rulga/Doc-chat/send_request.py
-
curl -L -o send_request.py https://huggingface.co/spaces/Rulga/Doc-chat/resolve/main/send_request.py
267 Bytes
| import requests | |
| url = "https://rulga-doc-chat.hf.space/rebuild-kb" | |
| response = requests.post(url, params={"force": True}) | |
| print(response.json()) | |
| # Проверка статуса | |
| status = requests.get("https://rulga-doc-chat.hf.space/kb-status") | |
| print(status.json()) |