Skip to content

Commit

Permalink
add bot lines
Browse files Browse the repository at this point in the history
  • Loading branch information
SukhmeetSingh2002 committed Oct 1, 2023
1 parent 2ee8f64 commit c7441e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from flask import Flask, request, jsonify
# from bot import BhagavadGitaBot
from bot import BhagavadGitaBot

app = Flask(__name__)
# bot = BhagavadGitaBot()
bot = BhagavadGitaBot()

@app.route('/', methods=['GET'])
def home():
Expand All @@ -15,8 +15,8 @@ def hello():
@app.route('/api/get-response', methods=['POST'])
def get_response():
user_input = request.json['user_input']
# response = bot.get_response(user_input)
return jsonify({'response': "response"})
response = bot.get_response(user_input)
return jsonify({'response': response})

if __name__ == '__main__':
# if app.config['FLASK_ENV'] == 'development':
Expand Down

0 comments on commit c7441e1

Please sign in to comment.