Spaces:
Runtime error
Runtime error
metadata
title: WeavePrompt
emoji: 🎨
colorFrom: blue
colorTo: purple
sdk: docker
sdk_version: 5.44.1
pinned: false
license: mit
app_port: 7860
WeavePrompt
Iterative prompt refinement for text-to-image models. Given a target image, WeavePrompt automatically generates and refines text prompts to make a model's output resemble the target image, using vision-language models and perceptual metrics.
Features
- Upload a target image
- Step-by-step prompt optimization
- View prompt and generated image at each iteration
- Full optimization history
Installation
- Clone the repository:
git clone <repo-url> cd WeavePrompt - Install dependencies:
uv venv uv sync source .venv/bin/activate
Usage
Run the demo app:
streamlit run app.py
Follow the instructions in the browser to upload an image and step through the optimization process.