salso commited on
Commit
daf928f
·
verified ·
1 Parent(s): f1e6a3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -141,37 +141,37 @@ with gr.Blocks(css=css, title="ZenCtrl Inpainting") as demo:
141
 
142
  examples = [
143
  [
144
- load_pil("examples/sofa1.png"), # subject image (PIL)
145
- {"image": load_pil("examples/sofa1_bg.png"), # sketch widget expects dict
146
- "mask": None},
147
  "add the sofa"
148
  ],
149
  [
150
- load_pil("examples/sofa2.png"),
151
- {"image": load_pil("examples/sofa2_bg.png"), "mask": None},
152
  "add this sofa"
153
  ],
154
  [
155
- load_pil("examples/chair1.png"),
156
- {"image": load_pil("examples/chair1_bg.png"), "mask": None},
157
  "add the chair"
158
  ],
159
  [
160
- load_pil("examples/console_table.png"),
161
- {"image": load_pil("examples/console_table_bg.png"), "mask": None},
162
- "Scandinavian console table against a gallery-style wall filled with abstract framed art,"
163
  ],
164
  [
165
- load_pil("examples/office_chair.png"),
166
- {"image": load_pil("examples/office_chair_bg.png"), "mask": None},
167
  "office chair"
168
  ],
169
  [
170
- load_pil("examples/car.png"),
171
- {"image": load_pil("examples/car_bg.png"), "mask": None},
172
  "car on the road"
173
  ],
174
  ]
 
175
 
176
  # ---------- Examples block ------------------------
177
  gr.Examples(
 
141
 
142
  examples = [
143
  [
144
+ "examples/sofa1.png",
145
+ {"image": "examples/sofa1_bg.png", "mask": None},
 
146
  "add the sofa"
147
  ],
148
  [
149
+ "examples/sofa2.png",
150
+ {"image": "examples/sofa2_bg.png", "mask": None},
151
  "add this sofa"
152
  ],
153
  [
154
+ "examples/chair1.png",
155
+ {"image": "examples/chair1_bg.png", "mask": None},
156
  "add the chair"
157
  ],
158
  [
159
+ "examples/console_table.png",
160
+ {"image": "examples/console_table_bg.png", "mask": None},
161
+ "Scandinavian console table against a gallery-style wall filled with abstract framed art"
162
  ],
163
  [
164
+ "examples/office_chair.png",
165
+ {"image": "examples/office_chair_bg.png", "mask": None},
166
  "office chair"
167
  ],
168
  [
169
+ "examples/car.png",
170
+ {"image": "examples/car_bg.png", "mask": None},
171
  "car on the road"
172
  ],
173
  ]
174
+
175
 
176
  # ---------- Examples block ------------------------
177
  gr.Examples(