style-master / README.md
inflaton's picture
init code
1761643

A newer version of the Gradio SDK is available: 6.13.0

Upgrade
metadata
title: Style Master
emoji: 😻
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
license: unlicense

This project uses OpenAI large language models (LLMs) to create the recommendation engine for an e-commerce clothing store.

Running Locally

  1. Install packages
make install
  1. Set up your environment variables
cp .env.example .env
  • Update the environment variables in .env, e.g., OPENAI_API_KEY, according to your needs.
  1. (optional) Process garment images

This step is needed only when you have changed the garment images and/or manifest info.

make process
  • if GARMENTS_FILE_PATH doesn't exist, the script will call GPT-4 Vision API to generate metadata for garment images stored in GARMENT_MANIFEST_FILE_PATH folder. A new file GARMENTS_FILE_PATH will be created.

  • if GARMENTS_FILE_PATH already exists, the script will NOT call GPT-4 Vision API. The file GARMENTS_FILE_PATH will be updated with the latest data from GARMENT_MANIFEST_FILE_PATH file.

  1. Run automated test cases
make test
  1. Run Gradio web app
make start