diff --git a/app.py b/app.py index 3613070..4e2d196 100644 --- a/app.py +++ b/app.py @@ -21,7 +21,9 @@ # Initialize the Flask application app = Flask(__name__) -app.secret_key = b'_5#y2L"F4Q8z\n\xec]/' + +# Initializing flask secret key using the environment variable "secret_key" +app.secret_key = os.environ.get('secret_key', 'z528&^FJjhd_t2bxc#$2').encode() # This is the path to the upload directory app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER