rynmurdock commited on
Commit
b6f6f81
1 Parent(s): 7c0c4ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -52,18 +52,9 @@ def next_image():
52
  prompt = calibrate_prompts.pop(0)
53
  print(prompt)
54
 
55
- image = pipe(
56
- prompt=prompt,
57
- height=1024,
58
- width=1024,
59
- num_inference_steps=8,
60
- guidance_scale=0,
61
- ip_adapter_emb=torch.zeros(1, 1, 1280, device=DEVICE, dtype=torch.float16),
62
- ).images
63
-
64
-
65
- pooled_embeds, _ = pipe.encode_image(
66
- image[0], DEVICE, 1, output_hidden_state
67
  )
68
 
69
  embs.append(pooled_embeds)
 
52
  prompt = calibrate_prompts.pop(0)
53
  print(prompt)
54
 
55
+ image, pooled_embeds = replicate.run(
56
+ "rynmurdock/zahir:43177e0594f3bc2e3560170ff0ffb6d1cacdddda1be25fbcd4348ef02b0b7d0f",
57
+ input={"prompt": prompt, 'im_emg': pickle.dumps(im_emb)}
 
 
 
 
 
 
 
 
 
58
  )
59
 
60
  embs.append(pooled_embeds)