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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -163,6 +163,7 @@ def update_y(x,y,prompt, seed, steps,
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,
 
163
 
164
  @spaces.GPU
165
  def invert(image, num_inversion_steps=50, skip=0.3):
166
+ image = image.resize((512,512))
167
  init_latents,zs = clip_slider_inv.pipe.invert(
168
  source_prompt = "",
169
  image = image,