Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
167 |
source_prompt = "",
|
168 |
image = image,
|
169 |
num_inversion_steps = num_inversion_steps,
|
170 |
skip = skip
|
171 |
)
|
172 |
-
return
|
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
|