Update README.md
Browse files
README.md
CHANGED
@@ -43,7 +43,7 @@ messages = [
|
|
43 |
|
44 |
# Apply chat template and tokenize
|
45 |
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
46 |
-
inputs = processor(text=text, images=image, return_tensors="pt")
|
47 |
|
48 |
# Run inference to obtain logits
|
49 |
with torch.no_grad():
|
|
|
43 |
|
44 |
# Apply chat template and tokenize
|
45 |
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
46 |
+
inputs = processor(text=text, images=image, return_tensors="pt")
|
47 |
|
48 |
# Run inference to obtain logits
|
49 |
with torch.no_grad():
|