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.md
git clone https://github.com/roshankodi/car-price-prediction.git
cd car-price-predictionWindows:
python -m venv .venv .venv\Scripts\activate
Mac/Linux:
python3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txt
python main.py
Open 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 š


