mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-17 21:26:26 +00:00
sending data to aws
This commit is contained in:
parent
986648479a
commit
07e51dc8c6
@ -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'}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user