Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
lixiang46
commited on
Commit
•
fc8d8be
1
Parent(s):
9de3e9f
test
Browse files
app.py
CHANGED
@@ -84,6 +84,9 @@ def load_description(fp):
|
|
84 |
content = f.read()
|
85 |
return content
|
86 |
|
|
|
|
|
|
|
87 |
with gr.Blocks(css=css) as Tryon:
|
88 |
gr.HTML(load_description("assets/title.md"))
|
89 |
with gr.Row():
|
@@ -144,10 +147,11 @@ with gr.Blocks(css=css) as Tryon:
|
|
144 |
)
|
145 |
|
146 |
image1.change(
|
147 |
-
|
148 |
-
|
|
|
149 |
).then(
|
150 |
-
fn=start_tryon,
|
151 |
inputs=[image1, image2, seed, randomize_seed],
|
152 |
outputs=[image_out, seed_used, result_info]
|
153 |
)
|
|
|
84 |
content = f.read()
|
85 |
return content
|
86 |
|
87 |
+
def change_imgs(image1, image2):
|
88 |
+
return image1, image2
|
89 |
+
|
90 |
with gr.Blocks(css=css) as Tryon:
|
91 |
gr.HTML(load_description("assets/title.md"))
|
92 |
with gr.Row():
|
|
|
147 |
)
|
148 |
|
149 |
image1.change(
|
150 |
+
fn = change_imgs,
|
151 |
+
input = [image1, image2],
|
152 |
+
outputs = [imgs, garm_img]
|
153 |
).then(
|
154 |
+
fn = start_tryon,
|
155 |
inputs=[image1, image2, seed, randomize_seed],
|
156 |
outputs=[image_out, seed_used, result_info]
|
157 |
)
|