diff --git a/.ebextensions/python.config b/.ebextensions/python.config new file mode 100644 index 0000000..d94e30c --- /dev/null +++ b/.ebextensions/python.config @@ -0,0 +1,3 @@ +option_settings: + "aws:elasticbeanstalk:container:python": + WSGIPath: application:application \ No newline at end of file diff --git a/app.py b/application.py similarity index 92% rename from app.py rename to application.py index e922b04..db4ab5a 100644 --- a/app.py +++ b/application.py @@ -5,7 +5,9 @@ from sklearn.preprocessing import StandardScaler from src.pipeline.predict_pipeline import CustomData,PredictPipeline -app=Flask(__name__) +application=Flask(__name__) + +app=application ## Route for a home page @@ -39,6 +41,5 @@ def predict_datapoint(): return render_template('home.html',results=results[0]) -if __name__ == '__main__': - app.run(debug=True) - +if __name__=="__main__": + app.run(debug=True) \ No newline at end of file