nielsr HF staff commited on
Commit
8e04490
1 Parent(s): 8ec352f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -38,7 +38,7 @@ model.to(device)
38
  url = "https://raw.githubusercontent.com/salesforce/LAVIS/main/docs/_static/Confusing-Pictures.jpg"
39
  image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
40
  prompt = "What is unusual about this image?"
41
- inputs = processor(images=image, text=prompt, return_tensors="pt")
42
 
43
  outputs = model.generate(
44
  **inputs,
 
38
  url = "https://raw.githubusercontent.com/salesforce/LAVIS/main/docs/_static/Confusing-Pictures.jpg"
39
  image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
40
  prompt = "What is unusual about this image?"
41
+ inputs = processor(images=image, text=prompt, return_tensors="pt").to(device)
42
 
43
  outputs = model.generate(
44
  **inputs,