Skip to content

agrawal-2005/Letsdress.AI

Repository files navigation

👗 Letsdress.AI – AI-Powered Fashion Personalization Tool

Python Version Flask Version License

Letsdress.AI is a smart fashion personalization tool that uses generative AI to turn your clothing ideas into high-quality images. It combines the power of Stability AI's models with a clean, modern interface, allowing you to visualize unique outfits in real-time.


📌 Overview

Letsdress.AI helps users visualize personalized fashion recommendations by offering:

  • 🧠 Smart Recommendations based on user input and style prompts
  • 🔁 Real-Time Trend Adaptation that reflects the latest fashion trends
  • 💻 Modern UI/UX with interactive and responsive design

📁 Project Structure

Letsdress.AI/
├── authtoken.py                  # App entry point and API auth logic
├── requirements.txt             # Python dependencies
├── *.png                        # Screenshot assets
│
├── database/
│   ├── image_data.py           # DB script for storing images and metadata
│   └── Image_data.db           # SQLite database
│
├── static/                     # Static frontend files
│   ├── css/
│   ├── js/
│   └── images/
│
├── templates/                  # HTML templates (Jinja2)
│   ├── feedback.html
│   ├── index.html
│   └── opening.html
│
├── .idea/                      # IDE (PyCharm) configs [optional, can ignore]
└── __pycache__/                # Python bytecode cache [auto-generated]

🧠 Features

  • 👤 User Personalization: Tailors results to user prompts
  • 🛍️ Outfit Generation: Uses Stable Diffusion for realistic clothing previews
  • 📈 Trend-Aware Filtering: Highlights trending styles
  • 💅 Clean UI: Minimal, modern, and user-friendly
  • 📊 Database Storage: Saves generated images with prompt tags

🧰 Tech Stack

Frontend Backend Machine Learning Database
HTML / CSS / JS Flask Stable Diffusion, Jinja2 SQLite3

🔄 How It Works

  1. User Prompt: Users input a desired clothing style
  2. Image Generation: Prompt sent to the backend → Stable Diffusion generates visuals
  3. Storage: Images saved in static/images/ and logged in SQLite DB
  4. Display: Results rendered dynamically on the web UI
  5. Database Logging: A reference to the image and its corresponding prompt is stored in the SQLite database.
  6. Image Storage: The generated image is saved to the /static/images/ directory, overwriting one of the placeholder images to update the carousel.

🛠️ Getting Started

1. Clone the Repo

git clone https://github.com/agrawal-2005/Letsdress.AI.git
cd Letsdress.AI

2. Set Up the Environment

python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Add API Credentials

Create a .env file in the root directory:

API_URL=https://router.huggingface.co/hf-inference/models/stabilityai/stable-diffusion-xl-base-1.0
API_TOKEN=your_huggingface_token_here
GMAIL=your_email_here
GMAIL_PASSWORD=your_gmail_app_password_here

5. Run the App

python authtoken.py

Visit: http://localhost:5000


🧬 Machine Learning

  • Powered by Stable Diffusion XL
  • Prompt-based generation: "<style> outfit" patterns
  • Images rendered and saved for future display + analytics
  • Supports basic trend personalization via text prompts

📸 UI Preview

Startup Page Results Output
Startup Feedback Form Result1 Result2

🙋 Feedback

Found an issue or have an idea? Reach out via GitHub: @agrawal-2005


📄 License

MIT License — See LICENSE for details.

About

Letsdress.AI is a personalized fashion Studio developed using Python and Flask. Created as a submission for Flipkart Grid, the project blends minimalist design with dynamic styling suggestions, aiming to enhance the online shopping experience through intuitive, visually engaging interfaces.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors