Skip to content

Commit

Permalink
fix: pre-commit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinHsu1019 committed Nov 14, 2024
1 parent 8c68854 commit c087761
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@auth.verify_password
def verify_password(username, password):
""" Verify password for API Docs"""
"""Verify password for API Docs"""
if username in users and check_password_hash(users.get(username), password):
return username
return None
Expand Down Expand Up @@ -53,6 +53,7 @@ def verify_password(username, password):
@ns.route('/')
class HealthCheck(Resource):
"""Server health check."""

@api.doc('health_check')
def get(self):
"""Server health check."""
Expand All @@ -64,6 +65,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):
Expand Down

0 comments on commit c087761

Please sign in to comment.