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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -448,7 +448,7 @@ with gr.Blocks(css='style.css') as demo:
448
  skip,
449
  wts, zs],
450
  outputs = [ddpm_edited_image]
451
- )
452
 
453
 
454
  # Automatically start inverting upon input_image change
@@ -481,7 +481,7 @@ with gr.Blocks(css='style.css') as demo:
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:
487
  src_prompt.change(
 
448
  skip,
449
  wts, zs],
450
  outputs = [ddpm_edited_image]
451
+ ).then(fn = show_hide_reconstruction_button, outputs =[reconstruct_button, hide_reconstruct_button])
452
 
453
 
454
  # Automatically start inverting upon input_image change
 
481
  hide_reconstruct_button.click(fn = hide_reconstruction,
482
  outputs=[ddpm_edited_image],
483
  queue=False)
484
+
485
 
486
  # Repeat inversion when these params are changed:
487
  src_prompt.change(