From 07e51dc8c6c92d8df8d968a41d3c4c2558299221 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 6 Mar 2023 10:23:52 +0000 Subject: [PATCH] sending data to aws --- application/app.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/application/app.py b/application/app.py index 15f4857..3dbd07c 100644 --- a/application/app.py +++ b/application/app.py @@ -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'}