coyotte508 HF staff adirik commited on
Commit
11204f7
1 Parent(s): d332311

Update README.md (#1)

Browse files

- Update README.md (71fdc45ba2a9d48167b9cfe5823d7c60c33b1d1f)


Co-authored-by: Alara Dirik <adirik@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -33,7 +33,7 @@ model = AlignModel.from_pretrained("kakaobrain/align-base")
33
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"
34
  image = Image.open(requests.get(url, stream=True).raw)
35
 
36
- inputs = processor(text=["a photo of a cat", "a photo of a dog"], images=image, return_tensors="pt", padding=True)
37
 
38
  outputs = model(**inputs)
39
  logits_per_image = outputs.logits_per_image # this is the image-text similarity score
 
33
  url = "http://images.cocodataset.org/val2017/000000039769.jpg"
34
  image = Image.open(requests.get(url, stream=True).raw)
35
 
36
+ inputs = processor(text=["a photo of a cat", "a photo of a dog"], images=image, return_tensors="pt")
37
 
38
  outputs = model(**inputs)
39
  logits_per_image = outputs.logits_per_image # this is the image-text similarity score