In this lab, you will deploy a pre-trained machine learning model (regression/classification) using Flask. Create a web interface that allows users to make predictions through their browser.
- Search for an interesting dataset online (Kaggle, UCI ML Repository, etc.)
- Choose a regression or classification problem that interests you
- Train and save your model as a
.pklfile
- Set up your Flask app and load your saved model
- Create routes for home page (
/) and predictions (/predict) - Handle POST requests and return predictions
- Add proper error handling for invalid inputs
- Create a
templates/folder with HTML files - Design an engaging and creative interface that fits your data theme
- Build input forms that match your model's features
- Create attractive result displays that clearly show predictions
- Make it visually appealing and user-friendly
- Test your application locally
- Ensure all functionality works properly
- Verify error handling and edge cases
Your Flask application should demonstrate creativity in both data choice and interface design while maintaining professional functionality.
- Upon completion, add your deliverables to git.
- Then commit git and push your branch to the remote.
- Make a pull request and paste the PR link in the submission field in the Student Portal.
Good luck!
