Skip to content

akashbaidya015/shopthelook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ ShopTheLook

ShopTheLook is an AI-powered fashion assistant that transforms your mood, vibe, or occasion into stylish outfit imagesβ€”and helps you shop the look instantly. Powered by Google's Gemini multimodal API, Stable Diffusion, and real-time product search via SerpAPI, this project delivers a seamless "mood-to-outfit-to-shopping-cart" experience.

✨ Features

  • 🎯 Prompt Refinement: Gemini refines vague user input (e.g., "cosmic streetwear") into detailed prompts for image generation.
  • 🎨 Outfit Generation: Uses Stable Diffusion to generate high-quality, on-theme fashion visuals.
  • πŸ‘οΈ Multimodal Image Analysis: Gemini vision analyzes images and produces SEO-friendly shopping phrases.
  • πŸ›οΈ Real-Time Shopping Integration: Uses SerpAPI to fetch Google Shopping results for analyzed outfits.
  • 🧠 Vector Caching: Pinecone stores prompt-image-search triplets for faster repeat queries.
  • ☁️ Cloud-Based Storage: Google Cloud Storage hosts generated images and makes them instantly shareable.

πŸ”§ Tech Stack

  • Gemini API (Text + Vision) – Prompt refinement and image description
  • Stable Diffusion (HuggingFace) – Fashion image generation
  • SerpAPI – Real-time product search
  • OpenAI Embeddings + Pinecone – Smart caching for performance
  • Google Cloud Storage – Hosting generated images
  • LangChain – Workflow orchestration
  • Python, Google Colab – Development environment

πŸš€ How It Works

  1. User enters a mood, occasion, or style prompt.
  2. Gemini refines the input into a more detailed fashion concept.
  3. Stable Diffusion generates outfit images based on the refined prompt.
  4. Gemini vision analyzes images to generate search-optimized fashion phrases.
  5. SerpAPI fetches real-world shopping results based on those phrases.
  6. The output includes generated images and links to purchase similar styles.

πŸ“Έ Sample Output

Input Prompt: "Saturn vibes"
Gender: Male
Age: 24

Generated Images:

  • Hosted on Google Cloud Storage

Gemini Analysis:

  • "lace midi fit and flare wedding dress"
  • "lace midi dress puff sleeves"

Shopping Results:

  • Grace Loves Lace Jones Crepe Dress – $2,900
  • Lulus Lace Puff Sleeve Dress – $69.00

πŸ› οΈ Installation & Setup

Project is currently built in Google Colab with access to external APIs.

  1. Clone or open the notebook in Google Colab.
  2. Install the required libraries:
pip install pillow torch diffusers google-cloud-storage langchain \
pinecone-client google-generativeai serpapi tiktoken

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors