File size: 345 Bytes
741f393 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import requests
import json
url = "http://127.0.0.1:8000/ask_localai"
payload = json.dumps({
"query": "Is there a case number for OWASP?"
})
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print("-------------------")
print(response) |