Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,16 +56,16 @@ def invert_and_edit(image,
|
|
| 56 |
latent_image_ids = gr.State(value=latent_image_ids_tensor)
|
| 57 |
do_inversion = False
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
|
| 70 |
return output, inverted_latents, image_latents, latent_image_ids, do_inversion, seed
|
| 71 |
|
|
|
|
| 56 |
latent_image_ids = gr.State(value=latent_image_ids_tensor)
|
| 57 |
do_inversion = False
|
| 58 |
|
| 59 |
+
|
| 60 |
+
output = pipe(prompt,
|
| 61 |
+
inverted_latents=inverted_latents.value,
|
| 62 |
+
image_latents=image_latents.value,
|
| 63 |
+
latent_image_ids=latent_image_ids.value,
|
| 64 |
+
start_timestep=start_timestep,
|
| 65 |
+
stop_timestep=stop_timestep,
|
| 66 |
+
num_inference_steps=num_inversion_steps,
|
| 67 |
+
eta=eta,
|
| 68 |
+
).images[0]
|
| 69 |
|
| 70 |
return output, inverted_latents, image_latents, latent_image_ids, do_inversion, seed
|
| 71 |
|