linoyts HF staff commited on
Commit
cb2b5d8
1 Parent(s): 85c4d8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -163,13 +163,13 @@ def update_y(x,y,prompt, seed, steps,
163
 
164
  @spaces.GPU
165
  def invert(image, num_inversion_steps=50, skip=0.3):
166
- _ = clip_slider_inv.pipe.invert(
167
  source_prompt = "",
168
  image = image,
169
  num_inversion_steps = num_inversion_steps,
170
  skip = skip
171
  )
172
- return clip_slider_inv.pipe.init_latents, lip_slider_inv.pipe.zs
173
 
174
  def reset_do_inversion():
175
  return True
 
163
 
164
  @spaces.GPU
165
  def invert(image, num_inversion_steps=50, skip=0.3):
166
+ init_latents,zs = clip_slider_inv.pipe.invert(
167
  source_prompt = "",
168
  image = image,
169
  num_inversion_steps = num_inversion_steps,
170
  skip = skip
171
  )
172
+ return init_latents,zs
173
 
174
  def reset_do_inversion():
175
  return True