Linoy Tsaban commited on
Commit ·
08a4d70
1
Parent(s): f1f5181
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,7 +118,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 118 |
# offsets=(0,0,0,0)
|
| 119 |
x0 = load_512(input_image, device=device)
|
| 120 |
|
| 121 |
-
if not
|
| 122 |
# invert and retrieve noise maps and latent
|
| 123 |
zs, wts = invert(x0 =x0 , prompt_src=src_prompt, num_diffusion_steps=steps, cfg_scale_src=cfg_scale_src)
|
| 124 |
xt = gr.State(value=wts[skip])
|
|
|
|
| 118 |
# offsets=(0,0,0,0)
|
| 119 |
x0 = load_512(input_image, device=device)
|
| 120 |
|
| 121 |
+
if not xt:
|
| 122 |
# invert and retrieve noise maps and latent
|
| 123 |
zs, wts = invert(x0 =x0 , prompt_src=src_prompt, num_diffusion_steps=steps, cfg_scale_src=cfg_scale_src)
|
| 124 |
xt = gr.State(value=wts[skip])
|