File size: 2,552 Bytes
4a06522
d4354eb
ef3a9c2
4a06522
ef3a9c2
4a06522
ef3a9c2
4a06522
 
d4354eb
4a06522
ef3a9c2
4a06522
ef3a9c2
 
 
 
 
 
 
 
b757cb4
ef3a9c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4a06522
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
title: Prompt Image Editor
emoji: 
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 6.0.1
app_file: app.py
pinned: false
license: mit
---
# Prompt Image Editor

A clean and flexible Hugging Face Space for generating images from text prompts and editing existing images using mask-based inpainting.  
The project is optimized for Spaces and uses Gradio + Diffusers with support for custom model IDs through environment variables.

---

## 🔗 Official Links
- Website: https://jumplander.org/
- Hugging Face profile: https://huggingface.co/jumplander
- GitHub: https://github.com/jumplander-readme

> Note: JumpLander branding is referenced only inside this README.  
> The source code (app.py) intentionally contains no branding so this Space can be published under a subsidiary account or page.

---

## 🚀 Features
- Text → Image generation  
- Image editing (inpainting) with custom masks  
- Adjustable inference steps  
- Adjustable guidance scale  
- Supports any Diffusers-compatible model through `MODEL_ID`  
- Clean, fast, GPU-ready

---

## 🛠 How to Use (Hugging Face Spaces)
1. Open your Space.  
2. Go to **Settings → Variables & Secrets**:
   - Add a **Secret**:  
     - `HF_API_TOKEN` → Your Hugging Face token (only needed for gated/private models)
   - Add a **Variable**:  
     - `MODEL_ID` → e.g. `runwayml/stable-diffusion-v1-5`
3. Upload:
   - `app.py`
   - `requirements.txt`
   - `README.md`
   - `.huggingface.yaml` (auto-created from metadata)
4. Enable GPU if required:
   - Settings → **Hardware → GPU**

---

## 🧪 Recommended Models
You can switch models anytime:

- `runwayml/stable-diffusion-v1-5` (fast & stable)  
- `SG161222/RealVisXL2.0` (high-quality realism)  
- `stabilityai/sdxl-turbo` (very fast)  
- `stabilityai/sdxl-base-1.0` (high detail)

Just replace the value of `MODEL_ID`.

---

## 📄 Environment Variables (Spaces)
| Name | Type | Description |
|------|------|-------------|
| `MODEL_ID` | Variable | Which diffusion model to load |
| `HF_API_TOKEN` | Secret | Required only for private/gated models |

---

## 🧰 Project Structure
.
├── app.py # main application
├── requirements.txt # dependencies
└── README.md # documentation

yaml
Copy code

---

## 📘 License
This project is licensed under the **MIT License**.

---

## 🤝 Contribution
Feel free to fork the project, submit improvements, or connect with JumpLander’s community.

---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference