Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -140,36 +140,14 @@ with gr.Blocks(css=css, title="ZenCtrl Inpainting") as demo:
|
|
| 140 |
return Image.open(Path(p))
|
| 141 |
|
| 142 |
examples = [
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
"add this sofa"
|
| 152 |
-
],
|
| 153 |
-
[
|
| 154 |
-
load_pil("examples/chair1.png"),
|
| 155 |
-
{"image": load_pil("examples/chair1_bg.png"), "mask": None},
|
| 156 |
-
"add the chair"
|
| 157 |
-
],
|
| 158 |
-
[
|
| 159 |
-
load_pil("examples/console_table.png"),
|
| 160 |
-
{"image": load_pil("examples/console_table_bg.png"), "mask": None},
|
| 161 |
-
"Scandinavian console table against a gallery-style wall filled with abstract framed art"
|
| 162 |
-
],
|
| 163 |
-
[
|
| 164 |
-
load_pil("examples/office_chair.png"),
|
| 165 |
-
{"image": load_pil("examples/office_chair_bg.png"), "mask": None},
|
| 166 |
-
"office chair"
|
| 167 |
-
],
|
| 168 |
-
[
|
| 169 |
-
load_pil("examples/car.png"),
|
| 170 |
-
{"image": load_pil("examples/car_bg.png"), "mask": None},
|
| 171 |
-
"car on the road"
|
| 172 |
-
],
|
| 173 |
]
|
| 174 |
|
| 175 |
|
|
|
|
| 140 |
return Image.open(Path(p))
|
| 141 |
|
| 142 |
examples = [
|
| 143 |
+
# subject --------------------------- background ------------------------------ prompt
|
| 144 |
+
[load_pil("examples/sofa1.png"), load_pil("examples/sofa1_bg.png"), "add the sofa"],
|
| 145 |
+
[load_pil("examples/sofa2.png"), load_pil("examples/sofa2_bg.png"), "add this sofa"],
|
| 146 |
+
[load_pil("examples/chair1.png"), load_pil("examples/chair1_bg.png"), "add the chair"],
|
| 147 |
+
[load_pil("examples/console_table.png"), load_pil("examples/console_table_bg.png"),
|
| 148 |
+
"Scandinavian console table against a gallery-style wall filled with abstract framed art"],
|
| 149 |
+
[load_pil("examples/office_chair.png"), load_pil("examples/office_chair_bg.png"), "office chair"],
|
| 150 |
+
[load_pil("examples/car.png"), load_pil("examples/car_bg.png"), "car on the road"],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
]
|
| 152 |
|
| 153 |
|