π€ The Smart Way to Master Product Pricing!
PriceGenie AI helps businesses make data-driven pricing decisions using machine learning. With a sleek Streamlit dashboard, a powerful Flask backend, and top-tier ML models (LightGBM, XGBoost, CatBoost) β it gives real-time pricing insights to boost profits and stay competitive. πΉ
π Multi-Model Powerhouse β Uses LightGBM, XGBoost, and CatBoost for accurate predictions. π Interactive Dashboard β Explore trends, visualize metrics, and get instant insights. π§ AI-Powered API β Flask REST API for seamless integration with your systems. π Performance Metrics β Compare models and track historical improvements. β‘ Real-time Predictions β Get instant pricing suggestions for your products. π οΈ Simple Setup β Easy to install, run, and extend.
PriceGenie-AI/
βββ models/ # Trained model files
βββ python-backend/ # Flask API & backend logic
βββ streamlit_app.py # Streamlit dashboard UI
βββ Amazon_ML_Multi_Algorithm_Training.ipynb # Model training notebook
βββ requirements.txt
βββ start-backend.bat
βββ start-streamlit.bat
βββ README.md
π Folders may evolve as development continues.
| Layer | Technology |
|---|---|
| π¨ Frontend | Streamlit |
| βοΈ Backend | Flask (Python) |
| π€ ML Models | LightGBM Β· XGBoost Β· CatBoost Β· scikit-learn |
| π Visualization | Plotly |
| π Data Handling | pandas Β· numpy |
git clone https://github.com/SQUADRON-LEADER/PriceGenie-AI.git
cd PriceGenie-AIWindows:
python -m venv .venv
.venv\Scripts\activatemacOS/Linux:
python3 -m venv .venv
source .venv/bin/activatepip install -r python-backend/requirements.txtWindows:
start-streamlit.bat # Starts Streamlit Dashboard
start-backend.bat # Starts Flask APImacOS/Linux:
streamlit run streamlit_app.py --server.port 8502
cd python-backend && python app.py- π Dashboard β
http://localhost:8502 - π§ API β
http://localhost:5000 - β€οΈ Health Check β
http://localhost:5000/health
- Upload product data π
- Explore model results π
- Get recommended prices π°
- Export insights for business use π€
POST /predict
{
"product_id": "SKU123",
"features": { "cost": 10.5, "category": "electronics", "demand_score": 0.8 }
}Response:
{
"predicted_price": 14.99,
"model": "ensemble",
"confidence": 0.87
}- All training experiments are in:
Amazon_ML_Multi_Algorithm_Training.ipynb - Models are saved in
/models/for serving π§Ύ
π‘ Steps to Train:
- Clean your data π§Ή
- Feature engineering π§
- Train models π§
- Evaluate performance π
- Export models π¦
- Store secrets & keys in a
.envfile π - Use environment variables for deployment π
Recommended with pytest β
- API route tests π§©
- Model output validation π§
- Data preprocessing checks π§Ύ
Options to deploy easily:
- π³ Docker containers
- βοΈ Streamlit Cloud / Render / AWS
- π CI/CD with GitHub Actions
π‘ Want to help improve PriceGenie?
- Fork the repo π΄
- Create a feature branch π±
- Submit a pull request β¨
π Please include clear commit messages and update docs as needed.
MIT License
Copyright (c) 2025 Aayush Kumar
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
π Thanks to these amazing tools:
- LightGBM Β· XGBoost Β· CatBoost Β· scikit-learn
- Streamlit Β· Flask Β· Plotly
π¬ Let PriceGenie AI make your pricing smarter, faster, and fairer! β‘