Spaces:
Runtime error
Runtime error
lixiang46
commited on
Commit
•
fa2746c
1
Parent(s):
5900e16
add triggers
Browse files
app.py
CHANGED
@@ -143,6 +143,13 @@ with gr.Blocks(css=css) as Tryon:
|
|
143 |
label=None
|
144 |
)
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
ip = requests.get('http://ifconfig.me/ip', timeout=1).text.strip()
|
148 |
print("ip address", ip)
|
|
|
143 |
label=None
|
144 |
)
|
145 |
|
146 |
+
gr.on(
|
147 |
+
triggers = [image1.change],
|
148 |
+
fn=start_tryon,
|
149 |
+
inputs=[imgs, garm_img, seed, randomize_seed],
|
150 |
+
outputs=[image_out, seed_used, result_info]
|
151 |
+
)
|
152 |
+
|
153 |
|
154 |
ip = requests.get('http://ifconfig.me/ip', timeout=1).text.strip()
|
155 |
print("ip address", ip)
|