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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -90,7 +90,7 @@ def load_and_invert(
90
  steps=100,
91
  src_cfg_scale = 3.5,
92
  skip=36,
93
- tar_cfg_scale=15
94
 
95
  ):
96
 
@@ -105,7 +105,7 @@ def load_and_invert(
105
  do_inversion = False
106
 
107
  inversion_progress = "Inversion compeleted!"
108
- return wts, zs, do_inversion
109
 
110
  ## SEGA ##
111
 
@@ -412,7 +412,7 @@ with gr.Blocks(css='style.css') as demo:
412
  skip,
413
  tar_cfg_scale
414
  ],
415
- outputs=[wts, zs, do_inversion],
416
  ).success(
417
  fn=edit,
418
  inputs=[input_image,
 
90
  steps=100,
91
  src_cfg_scale = 3.5,
92
  skip=36,
93
+ tar_cfg_scale=15, progress=gr.Progress(track_tqdm=True)
94
 
95
  ):
96
 
 
105
  do_inversion = False
106
 
107
  inversion_progress = "Inversion compeleted!"
108
+ return wts, zs, do_inversion, inversion_progress
109
 
110
  ## SEGA ##
111
 
 
412
  skip,
413
  tar_cfg_scale
414
  ],
415
+ outputs=[wts, zs, do_inversion, inversion_progress],
416
  ).success(
417
  fn=edit,
418
  inputs=[input_image,