An end-to-end Machine Learning web application that predicts the resale price of a car based on important vehicle features such as year, kilometers driven, fuel type, transmission, seller type, and ownership history.
This project combines a trained ML model with a Flask backend and a responsive front-end interface to deliver real-time price predictions.
Deployed App:
https://car-price-prediction-vert.vercel.app/
- Machine learning-based car price prediction
- Clean and responsive UI
- Real-time prediction output
- Feature engineering for better performance
- Input validation and error handling
- Flask backend integration
- Deployed on Vercel
- Supports both web form and model inference
- Data cleaning
- Missing value handling
- Label encoding
- Feature selection
The following engineered features were added to improve model performance:
- Car Age
- Kilometers Per Year
These help improve prediction quality.
- HTML5
- CSS3
- Bootstrap
- Python
- Flask
- Pandas
- NumPy
- Scikit-learn
- Vercel
- Gunicorn
car_price_prediction/
│
├── app/
│ ├── utils.py
│ ├── Car_Pred_Model.pkl
│ ├── Column.json
│ └── encoded_data.json
│
├── templates/
│ └── index.html
│
├── CONFIG.py
├── main.py
├── requirements.txt
├── vercel.json
├── .env
├── .gitignore
└── README.mdgit clone https://github.com/roshankodi/car-price-prediction.git
cd car-price-predictionWindows:
python -m venv .venv
.venv\Scripts\activateMac/Linux:
python3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtpython main.pyOpen the app in your browser:
http://127.0.0.1:5000| Feature | Value |
|---|---|
| Year | 2018 |
| Kilometers Driven | 45000 |
| Fuel Type | Petrol |
| Seller Type | Dealer |
| Transmission | Manual |
| Owner | First Owner |
Predicted Price: ₹543,870.26- Add model comparison dashboard
- Improve prediction accuracy
- Add visual analytics
- Add prediction confidence ranges
- Add user authentication
- Store prediction history
- GitHub: https://github.com/roshankodi
- LinkedIn: https://www.linkedin.com/in/kodi-roshan-78858b356
- Portfolio: https://roshankodi.github.io/portfolio-me/
This project was built using open-source tools and libraries:
- Flask
- NumPy
- Pandas
- Scikit-learn
- Bootstrap
The machine learning workflow and regression approach were inspired by standard automobile resale prediction techniques.
If you found this project useful:
- Star the repository
- Fork the project
- Share feedback
Made with Python, Machine Learning, and Flask 🚀


