Linoy Tsaban commited on
Commit
609897f
1 Parent(s): d76aee0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -193,7 +193,7 @@ def edit(input_image,
193
  num_images_per_prompt=1,
194
  num_inference_steps=steps,
195
  use_ddpm=True, wts=wts.value, zs=zs.value[skip:], **editing_args)
196
- return sega_out.images[0], True
197
 
198
 
199
 
@@ -403,7 +403,7 @@ with gr.Blocks(css='style.css') as demo:
403
  threshold_1, threshold_2, threshold_3
404
 
405
  ],
406
- outputs=[sega_edited_image, is_show_reconstruction],
407
  ).success(
408
  fn = show_reconstruction_button,
409
  outputs = [reconstruct_button]
 
193
  num_images_per_prompt=1,
194
  num_inference_steps=steps,
195
  use_ddpm=True, wts=wts.value, zs=zs.value[skip:], **editing_args)
196
+ return sega_out.images[0]
197
 
198
 
199
 
 
403
  threshold_1, threshold_2, threshold_3
404
 
405
  ],
406
+ outputs=[sega_edited_image],
407
  ).success(
408
  fn = show_reconstruction_button,
409
  outputs = [reconstruct_button]