Linoy Tsaban commited on
Commit
206842b
1 Parent(s): e979ff7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def caption_image(input_image):
35
  return generated_caption, generated_caption
36
 
37
  def sample(zs, wts, prompt_tar="", cfg_scale_tar=15, skip=36, eta=1):
38
- latents = wts[-1].expand(1, -1, -1, -1)
39
  img = pipe(
40
  prompt=prompt_tar,
41
  init_latents=latents,
 
35
  return generated_caption, generated_caption
36
 
37
  def sample(zs, wts, prompt_tar="", cfg_scale_tar=15, skip=36, eta=1):
38
+ latents = wts.value[-1].expand(1, -1, -1, -1)
39
  img = pipe(
40
  prompt=prompt_tar,
41
  init_latents=latents,