Spaces:
Runtime error
Runtime error
File size: 901 Bytes
81c7b48 c6eb9ce 2db3081 c6eb9ce 2db3081 c6eb9ce 2db3081 c6eb9ce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
---
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
1. Clone the repository:
```bash
git clone <repo-url>
cd WeavePrompt
```
2. Install dependencies:
```bash
uv venv
uv sync
source .venv/bin/activate
```
## Usage
Run the demo app:
```bash
streamlit run app.py
```
Follow the instructions in the browser to upload an image and step through the optimization process.
|