Linoy Tsaban commited on
Commit
e4ae53e
1 Parent(s): 3522127

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -457,7 +457,7 @@ with gr.Blocks(css='style.css') as demo:
457
  queue=False).then(
458
  fn = hide_reconstruction,
459
  outputs=[ddpm_edited_image],
460
- queue=False).then(fn = show_inversion_progress, outputs=[inversion_progress]).then(
461
  fn=load_and_invert,
462
  inputs=[input_image,
463
  do_inversion,
@@ -472,7 +472,7 @@ with gr.Blocks(css='style.css') as demo:
472
  ],
473
  # outputs=[ddpm_edited_image, wts, zs, do_inversion],
474
  outputs=[wts, zs, do_inversion, inversion_progress],
475
- )
476
 
477
  # Repeat inversion when these params are changed:
478
  src_prompt.change(
 
457
  queue=False).then(
458
  fn = hide_reconstruction,
459
  outputs=[ddpm_edited_image],
460
+ queue=False).then(fn = show_inversion_progress, outputs=[inversion_progress],queue=False).then(
461
  fn=load_and_invert,
462
  inputs=[input_image,
463
  do_inversion,
 
472
  ],
473
  # outputs=[ddpm_edited_image, wts, zs, do_inversion],
474
  outputs=[wts, zs, do_inversion, inversion_progress],
475
+ ).then(fn = hide_inversion_progress, outputs=[inversion_progress],queue=False)
476
 
477
  # Repeat inversion when these params are changed:
478
  src_prompt.change(