diff --git a/Dockerfile b/Dockerfile index 8d3a82f..f2f5bac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +# CMD ["flask", "run", "--host=0.0.0.0"] +CMD [ "python3", "src/app.py" ] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b8c96bf..f83a602 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ flask -accelerate -torch -transformers \ No newline at end of file +# accelerate +# torch +# transformers \ No newline at end of file diff --git a/src/app.py b/src/app.py index e2e1b3e..35d86c4 100644 --- a/src/app.py +++ b/src/app.py @@ -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(): @@ -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':