Linoy Tsaban
commited on
Commit
·
0e3cffd
1
Parent(s):
a7dff95
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 wts:
|
| 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 wts.value:
|
| 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])
|