Training and Deploying Machine Learning model on Flask Server