From 5f21f3c9eab1f1001bfa2b0ce5924f40847e7e0e Mon Sep 17 00:00:00 2001 From: Nayak-cyber <68724949+Nayak-cyber@users.noreply.github.com> Date: Thu, 1 Oct 2020 10:07:28 +0530 Subject: [PATCH] Update api.py I added the port number as 80 so that whenever you start your server no need to specify the port number in the local host url. Just type the localhost in the url.But if you want then you can add another port --- api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index 22c27a0..712e593 100644 --- a/api.py +++ b/api.py @@ -5,6 +5,7 @@ app = Flask(__name__) +port=80 @app.route('/') @app.route('/home') def home(): @@ -186,5 +187,5 @@ def summarize(): return jsonify(result=result) if __name__ == '__main__': - app.run(debug=True) + app.run(debug=True,port=port)