Skip to content

Commit 728238e

Browse files
committed
Update bot.py
1 parent bd66f4a commit 728238e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ai chatbot/chatbot/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ def jwtVerify(cookies):
7272
def bot():
7373
# (E1) CORS
7474
if "HTTP_ORIGIN" in request.environ and request.environ["HTTP_ORIGIN"] in set.http_allow:
75-
# (E2-1) ALLOW ONLY REGISTERED USERS
75+
# (E1-1) ALLOW ONLY REGISTERED USERS
7676
""" @TODO - ENABLE THIS TO OPEN FOR REGISTERED USERS ONLY
7777
if jwtVerify(request.cookies) is False:
7878
return Response("Not Allowed", status = 405)
7979
"""
8080

81-
# (E2-2) ANSWER THE QUESTION
81+
# (E1-2) ANSWER THE QUESTION
8282
data = dict(request.form)
8383
if "query" in data:
8484
ans = chain(data["query"])

0 commit comments

Comments
 (0)