Update README.md
Browse files
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,
|