Linoy Tsaban commited on
Commit
3db28ba
1 Parent(s): 660a4aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -77,6 +77,7 @@ def edit(input_image,
77
  pure_ddpm_out = sample(wt, zs, wts, prompt_tar=tar_prompt,
78
  cfg_scale_tar=tar_cfg_scale, skip=skip,
79
  eta = eta)
 
80
 
81
  editing_args = dict(
82
  editing_prompt = [edit_concept],
@@ -91,7 +92,7 @@ def edit(input_image,
91
  num_images_per_prompt=1,
92
  num_inference_steps=steps,
93
  use_ddpm=True, wts=wts, zs=zs[skip:], **editing_args)
94
- return pure_ddpm_out,sega_out.images[0]
95
 
96
 
97
  # demo
 
77
  pure_ddpm_out = sample(wt, zs, wts, prompt_tar=tar_prompt,
78
  cfg_scale_tar=tar_cfg_scale, skip=skip,
79
  eta = eta)
80
+ yield pure_ddpm_out
81
 
82
  editing_args = dict(
83
  editing_prompt = [edit_concept],
 
92
  num_images_per_prompt=1,
93
  num_inference_steps=steps,
94
  use_ddpm=True, wts=wts, zs=zs[skip:], **editing_args)
95
+ yield pure_ddpm_out,sega_out.images[0]
96
 
97
 
98
  # demo