Linoy Tsaban commited on
Commit
76daa5c
1 Parent(s): fd0f11a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -478,7 +478,9 @@ with gr.Blocks(css='style.css') as demo:
478
  outputs=[wts, zs, do_inversion, inversion_progress],
479
  ).then(fn = hide_inversion_progress, outputs=[inversion_progress],queue=False)
480
 
481
-
 
 
482
  ddpm_edited_image.change(fn = show_hide_reconstruction_button, outputs =[reconstruct_button, hide_reconstruct_button])
483
 
484
  # Repeat inversion when these params are changed:
 
478
  outputs=[wts, zs, do_inversion, inversion_progress],
479
  ).then(fn = hide_inversion_progress, outputs=[inversion_progress],queue=False)
480
 
481
+ hide_reconstruct_button.click(fn = hide_reconstruction,
482
+ outputs=[ddpm_edited_image],
483
+ queue=False)
484
  ddpm_edited_image.change(fn = show_hide_reconstruction_button, outputs =[reconstruct_button, hide_reconstruct_button])
485
 
486
  # Repeat inversion when these params are changed: