We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd66f4a commit 728238eCopy full SHA for 728238e
ai chatbot/chatbot/bot.py
@@ -72,13 +72,13 @@ def jwtVerify(cookies):
72
def bot():
73
# (E1) CORS
74
if "HTTP_ORIGIN" in request.environ and request.environ["HTTP_ORIGIN"] in set.http_allow:
75
- # (E2-1) ALLOW ONLY REGISTERED USERS
+ # (E1-1) ALLOW ONLY REGISTERED USERS
76
""" @TODO - ENABLE THIS TO OPEN FOR REGISTERED USERS ONLY
77
if jwtVerify(request.cookies) is False:
78
return Response("Not Allowed", status = 405)
79
"""
80
81
- # (E2-2) ANSWER THE QUESTION
+ # (E1-2) ANSWER THE QUESTION
82
data = dict(request.form)
83
if "query" in data:
84
ans = chain(data["query"])
0 commit comments