Linoy Tsaban commited on
Commit
998e5bc
1 Parent(s): bd21a39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -417,10 +417,10 @@ with gr.Blocks(css="style.css") as demo:
417
  return inversion_progress.update(visible=False)
418
 
419
  def update_edit_progress_visibility(input_image, do_inversion):
420
- if do_inversion and not input_image is None:
421
- return inversion_progress.update(visible=True, label="inverting...")
422
- else:
423
- return inversion_progress.update(visible=True, label="editing...")
424
 
425
 
426
  gr.HTML(intro)
@@ -649,7 +649,7 @@ with gr.Blocks(css="style.css") as demo:
649
  tar_cfg_scale
650
  ],
651
  outputs=[wts, zs, do_inversion, inversion_progress],
652
- ).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion], outputs=[inversion_progress],queue=False).success(
653
  fn=edit,
654
  inputs=[input_image,
655
  wts, zs,
 
417
  return inversion_progress.update(visible=False)
418
 
419
  def update_edit_progress_visibility(input_image, do_inversion):
420
+ # if do_inversion and not input_image is None:
421
+ # return inversion_progress.update(visible=True)
422
+ # else:
423
+ return inversion_progress.update(visible=True)
424
 
425
 
426
  gr.HTML(intro)
 
649
  tar_cfg_scale
650
  ],
651
  outputs=[wts, zs, do_inversion, inversion_progress],
652
+ ).success(
653
  fn=edit,
654
  inputs=[input_image,
655
  wts, zs,