Download ask.py from SyvaAI/SyvaAI-Bv1: direct link, hf CLI and curl.
- Browser
- Download file 155 Bytes
-
https://huggingface.co/SyvaAI/SyvaAI-Bv1/resolve/main/ask.py
- Command line
-
hf download hf://SyvaAI/SyvaAI-Bv1/ask.py
-
curl -L -o ask.py https://huggingface.co/SyvaAI/SyvaAI-Bv1/resolve/main/ask.py
155 Bytes
| import requests | |
| resp = requests.post( | |
| "http://0.0.0.0:8000/ask", | |
| json={"question": "What is capital of France?", "top_k": 5} | |
| ) | |
| print(resp.json()) | |