fastRAG-bge-int8-static / example-request.py
IlyasMoutawwakil's picture
Create example-request.py
8858016 verified
raw
history blame contribute delete
229 Bytes
import requests as r
ENDPOINT_URL = ""
HF_TOKEN = ""
payload = {"inputs": "What is the capital of France?"}
response = r.post(ENDPOINT_URL, headers={"Authorization": f"Bearer {HF_TOKEN}"}, json=payload)
print(response.json())