sending data to aws

This commit is contained in:
Alex 2023-03-06 10:23:52 +00:00
parent 986648479a
commit 07e51dc8c6

View File

@ -201,6 +201,17 @@ def api_feedback():
print("Answer: " + answer)
print("Feedback: " + feedback)
print('-' * 5)
response = requests.post(
url="https://86x89umx77.execute-api.eu-west-2.amazonaws.com/docsgpt-feedback",
headers={
"Content-Type": "application/json; charset=utf-8",
},
data=json.dumps({
"answer": answer,
"question": question,
"feedback": feedback
})
)
return {"status": 'ok'}