Skip to content

Munazzah-Rakhangi/StyleSavvy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

title StyleSavvy
emoji πŸ†
colorFrom gray
colorTo purple
sdk gradio
sdk_version 5.29.0
app_file app.py
pinned false
short_description Style Savvy - AI Style Fashion Consultant

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

πŸ‘— StyleSavvy β€” Your AI Fashion Consultant

StyleSavvy is an AI-powered virtual stylist that analyzes clothing in photos and generates personalized fashion advice based on your body type, face shape, gender, and occasion.


✨ Features

  • πŸ“Έ Upload outfit photos for style analysis
  • 🧠 YOLOS-Fashionpedia for clothing detection
  • πŸͺ„ Optional background removal (remove.bg API)
  • πŸ’¬ Tailored tips using google/flan-t5-large language model
  • πŸ§β€β™€οΈ Personalized for body type, face shape, gender, and events
  • ⚑ Gradio interface for instant styling suggestions

🧰 Tech Stack

  • Gradio β€” User interface
  • YOLOS β€” Object detection (Fashionpedia dataset)
  • FLAN-T5 β€” Text generation for fashion tips
  • remove.bg API β€” Optional background removal
  • Hugging Face Spaces for hosting

πŸš€ Live Demo

πŸ‘‰ Try it here: StyleSavvy on Hugging Face


πŸ› οΈ How to Run Locally

1. Clone the repo

git clone https://github.com/Munazzah-Rakhangi/StyleSavvy.git
cd StyleSavvy

2. Create and activate virtual environment

Create a virtual environment:

python -m venv venv

Activate the environment:

  • On Windows:
    venv\Scripts\activate
  • On macOS/Linux:
    source venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

4. Add your API key (optional for background removal)

Create a .env file:

REMOVE_BG_API_KEY=your_api_key_here

Or add it as a Hugging Face secret if running on Spaces.

5. Run the app

python app.py

6. For Testing use command

python3 test_llm.py

Then open the local Gradio link in your browser.


πŸ§ͺ How to Test the App

  1. Upload an outfit photo that you want to analyze.
  2. Select styling parameters from the dropdown menus:
    • Body Type: Slim, Athletic, Curvy, Plus-size
    • Face Shape: Oval, Round, Square, Heart
    • Gender: Male, Female
    • Occasion: (e.g., Wedding, Casual, Business, etc.)
  3. Click Generate Style Tips.
  4. Review the personalized style tips and clothing analysis generated by the app.

🧠 Example Use Case

β€œA curvy woman with a round face going to a summer wedding”
β†’ StyleSavvy suggests breathable floral fabrics, statement earrings, and pastel tones that match the event ambiance.


🀝 Contributing

Feel free to open issues or pull requests!


About

πŸ‘— StyleSavvy β€” AI Fashion Consultant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages