Linoy Tsaban commited on
Commit
5f4a965
1 Parent(s): 60bf9eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,10 +79,10 @@ def reconstruct(tar_prompt,
79
  ):
80
 
81
  if do_reconstruction:
82
- reconstruction = sample(zs.value, wts.value, prompt_tar=tar_prompt, skip=skip, cfg_scale_tar=tar_cfg_scale)
83
- reconstruction = gr.State(value=reconstruction)
84
  do_reconstruction = False
85
- return reconstruction,reconstruction, do_reconstruction
86
 
87
 
88
  def load_and_invert(
 
79
  ):
80
 
81
  if do_reconstruction:
82
+ reconstruction_img = sample(zs.value, wts.value, prompt_tar=tar_prompt, skip=skip, cfg_scale_tar=tar_cfg_scale)
83
+ reconstruction = gr.State(value=reconstruction_img)
84
  do_reconstruction = False
85
+ return reconstruction.value, reconstruction, do_reconstruction
86
 
87
 
88
  def load_and_invert(