From 8c688548e038807780e941dfc9dbbaf819708bea Mon Sep 17 00:00:00 2001 From: Justin Hsu <141555665+JustinHsu1019@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:29:08 +0800 Subject: [PATCH] Update flask_app.py --- Model/flask_app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Model/flask_app.py b/Model/flask_app.py index e53164b..7190600 100644 --- a/Model/flask_app.py +++ b/Model/flask_app.py @@ -18,6 +18,7 @@ @auth.verify_password def verify_password(username, password): + """ Verify password for API Docs""" if username in users and check_password_hash(users.get(username), password): return username return None @@ -51,6 +52,7 @@ def verify_password(username, password): @ns.route('/') class HealthCheck(Resource): + """Server health check.""" @api.doc('health_check') def get(self): """Server health check.""" @@ -61,6 +63,7 @@ def get(self): @ns.route('/chat') class ChatBot(Resource): + """retrieve and rank api entry point""" @api.doc('chat_bot') @api.expect(model) def post(self):