Skip to content

PriceGenie AI revolutionizes product pricing through advanced machine learning, providing businesses with intelligent, data-driven pricing strategies that maximize profit while remaining competitive

Notifications You must be signed in to change notification settings

SQUADRON-LEADER/PriceGenius-AI

Repository files navigation

πŸ’« PriceGenie AI

Python Streamlit Machine Learning License

πŸ€– 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. πŸ’Ή


🎬 Demo

Screenshot 2025-10-09 162818 Screenshot 2025-10-09 162839 Screenshot 2025-10-09 162851 Screenshot 2025-10-09 162858 Screenshot 2025-10-09 162906 Screenshot 2025-10-09 162913

✨ Key Features

πŸš€ 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.


πŸ—‚οΈ Project Structure

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.


🧩 Tech Stack

Layer Technology
🎨 Frontend Streamlit
βš™οΈ Backend Flask (Python)
πŸ€– ML Models LightGBM Β· XGBoost Β· CatBoost Β· scikit-learn
πŸ“Š Visualization Plotly
πŸ“š Data Handling pandas Β· numpy

πŸͺ„ Quick Setup

1️⃣ Clone the Repository

git clone https://github.com/SQUADRON-LEADER/PriceGenie-AI.git
cd PriceGenie-AI

2️⃣ Create a Virtual Environment

Windows:

python -m venv .venv
.venv\Scripts\activate

macOS/Linux:

python3 -m venv .venv
source .venv/bin/activate

3️⃣ Install Dependencies

pip install -r python-backend/requirements.txt

4️⃣ Run the App

Windows:

start-streamlit.bat   # Starts Streamlit Dashboard
start-backend.bat     # Starts Flask API

macOS/Linux:

streamlit run streamlit_app.py --server.port 8502
cd python-backend && python app.py

🌐 Access Points

  • πŸ“Š Dashboard β†’ http://localhost:8502
  • 🧠 API β†’ http://localhost:5000
  • ❀️ Health Check β†’ http://localhost:5000/health

🧠 How It Works

πŸŽ›οΈ Streamlit Dashboard

  • Upload product data πŸ“‚
  • Explore model results πŸ”
  • Get recommended prices πŸ’°
  • Export insights for business use πŸ“€

πŸ”Œ Flask API Example

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
}

πŸ“˜ Model Training

  • All training experiments are in: Amazon_ML_Multi_Algorithm_Training.ipynb
  • Models are saved in /models/ for serving 🧾

πŸ’‘ Steps to Train:

  1. Clean your data 🧹
  2. Feature engineering πŸ”§
  3. Train models 🧠
  4. Evaluate performance πŸ“ˆ
  5. Export models πŸ“¦

βš™οΈ Configuration

  • Store secrets & keys in a .env file πŸ”’
  • Use environment variables for deployment 🌍

πŸ§ͺ Testing

Recommended with pytest βœ…

  • API route tests 🧩
  • Model output validation 🧠
  • Data preprocessing checks 🧾

☁️ Deployment

Options to deploy easily:

  • 🐳 Docker containers
  • ☁️ Streamlit Cloud / Render / AWS
  • πŸ”„ CI/CD with GitHub Actions

🀝 Contributing

πŸ’‘ Want to help improve PriceGenie?

  1. Fork the repo 🍴
  2. Create a feature branch 🌱
  3. Submit a pull request ✨

πŸ“ Please include clear commit messages and update docs as needed.


πŸ“œ License

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.


🌟 Acknowledgements

πŸ™ Thanks to these amazing tools:

  • LightGBM Β· XGBoost Β· CatBoost Β· scikit-learn
  • Streamlit Β· Flask Β· Plotly

πŸ’¬ Let PriceGenie AI make your pricing smarter, faster, and fairer! ⚑

About

PriceGenie AI revolutionizes product pricing through advanced machine learning, providing businesses with intelligent, data-driven pricing strategies that maximize profit while remaining competitive

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published