Skip to content

Commit

Permalink
temp changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SukhmeetSingh2002 committed Oct 1, 2023
1 parent 212923c commit e00903c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ ENV FLASK_APP=app.py
ENV FLASK_ENV=production

# Run the command to start the Flask web application
CMD ["flask", "run", "--host=0.0.0.0"]
# CMD ["flask", "run", "--host=0.0.0.0"]
CMD [ "python3", "src/app.py" ]
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flask
accelerate
torch
transformers
# accelerate
# torch
# transformers
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 e00903c

Please sign in to comment.