File size: 1,348 Bytes
1150b6a
 
 
 
 
 
 
 
 
 
 
b5c890c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
47
48
49
50
51
52
53
---
title: Qwen Image Edit
emoji: 🦀
colorFrom: red
colorTo: pink
sdk: gradio
sdk_version: 5.43.1
app_file: app.py
pinned: false
---

# 🎨 Qwen Image Editor

This Space demonstrates the power of [Qwen-Image-Edit](https://huggingface.co/Qwen/Qwen-Image-Edit) for image editing using text prompts.

## 🧠 Features

- **Semantic & Appearance Editing**: Modify content while preserving semantics or change specific elements
- **Text Editing**: Edit text in images with preserved fonts/styles
- **Style Transfer**: Transform images into different artistic styles
- **Viewpoint Transformation**: Rotate objects 90° or 180°

## 🛠️ How to Use

1. Upload an image
2. Enter a descriptive prompt (e.g., "Change the dog's color to blue")
3. Click "Generate Edited Image"

## ⚙️ Technical Details

- Uses the [Qwen-Image-Edit](https://huggingface.co/Qwen/Qwen-Image-Edit) model
- Based on Diffusers library
- Runs on CPU (free tier compatible)
- Color theme: #615ced

## 📝 Examples

Try these prompts:
- "Make the cat wear a hat"
- "Change background to sunset colors"
- "Add a rainbow behind the object"
- "Transform into Studio Ghibli style"

## 📦 Dependencies

- torch >= 2.0.0
- transformers >= 4.33.0
- diffusers >= 0.21.0
- Pillow >= 9.0.0
- gradio >= 3.38.0

> Note: This runs on CPU. Processing may take longer than GPU versions.