Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
·
71ffbcc
1
Parent(s):
8e8ac22
Update app.py
Browse files
app.py
CHANGED
@@ -96,9 +96,9 @@ For faster inference without waiting in queue, you may duplicate the space and u
|
|
96 |
with gr.Blocks(css='style.css') as demo:
|
97 |
|
98 |
def reset_latents():
|
99 |
-
|
100 |
zs = gr.State(value=None)
|
101 |
-
|
102 |
|
103 |
def edit(input_image,
|
104 |
xt, zs,
|
@@ -186,6 +186,10 @@ with gr.Blocks(css='style.css') as demo:
|
|
186 |
fn = reset_latents
|
187 |
)
|
188 |
|
|
|
|
|
|
|
|
|
189 |
|
190 |
gr.Examples(
|
191 |
label='Examples',
|
|
|
96 |
with gr.Blocks(css='style.css') as demo:
|
97 |
|
98 |
def reset_latents():
|
99 |
+
xt = gr.State(value=None)
|
100 |
zs = gr.State(value=None)
|
101 |
+
|
102 |
|
103 |
def edit(input_image,
|
104 |
xt, zs,
|
|
|
186 |
fn = reset_latents
|
187 |
)
|
188 |
|
189 |
+
skip.change(
|
190 |
+
fn = reset_latents
|
191 |
+
)
|
192 |
+
|
193 |
|
194 |
gr.Examples(
|
195 |
label='Examples',
|