Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
184e0c8
1
Parent(s):
5042117
Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ def main_ui():
|
|
119 |
gen_btn.click(generate, paras + [others[0], others[5]], [image, info])
|
120 |
others[2].click(lambda o, s: o if len(s) == 0 else s['parameters']['seed'], inputs=[paras[3], info], outputs=paras[3])
|
121 |
others[3].click(lambda i: i, inputs=image, outputs=paras[14])
|
122 |
-
others[4].click(lambda i, d: {'background': i, 'layers':d['layers'], 'composite': None}, inputs=[image, paras[17]], outputs=paras[17])
|
123 |
return page, paras[:14]
|
124 |
|
125 |
|
|
|
119 |
gen_btn.click(generate, paras + [others[0], others[5]], [image, info])
|
120 |
others[2].click(lambda o, s: o if len(s) == 0 else s['parameters']['seed'], inputs=[paras[3], info], outputs=paras[3])
|
121 |
others[3].click(lambda i: i, inputs=image, outputs=paras[14])
|
122 |
+
others[4].click(lambda i, d: gr.ImageEditor(value={'background': i, 'layers':d['layers'], 'composite': None}), inputs=[image, paras[17]], outputs=paras[17])
|
123 |
return page, paras[:14]
|
124 |
|
125 |
|