What is Flask?

Flask is web application framework in python. It's built on the Werkzeug WSGI toolkit and Jinja2 template engine. 

Web server gateway interface (WSGI) helps in requests, response object and other utility functions.

Jinja2 : templating engine helps in rendering dynamic web pages. 

Pip install Flask 

ML model deployment using flask

Step 1 : Pickling the ML model 

import pickle 
pickle.dump(model1, open('myfirst_model.pkl','wb'))

Pickle module help in serializing ML model and save to a file. 
Later we can load model from file and deserialize to make predictions.
model = pickle.load(open('myfirst_model.pkl','rb')) 

Comments

Popular posts from this blog

How to Run Anaconda3 Code from PowerShell ?

What is MLflow?