Update README.md
Browse files
README.md
CHANGED
|
@@ -105,7 +105,7 @@ text = processor.apply_chat_template(
|
|
| 105 |
messages, tokenize=False, add_generation_prompt=True, add_vision_id=False
|
| 106 |
)
|
| 107 |
images = [
|
| 108 |
-
Image.open(requests.get(image_url, stream=True).raw).convert("RGB")
|
| 109 |
]
|
| 110 |
|
| 111 |
inputs = processor(
|
|
@@ -140,6 +140,8 @@ generations = [
|
|
| 140 |
|
| 141 |
for j in range(len(messages)):
|
| 142 |
print("output:", j, generations[j].split(processor.tokenizer.eos_token)[0])
|
|
|
|
|
|
|
| 143 |
```
|
| 144 |
|
| 145 |
---
|
|
|
|
| 105 |
messages, tokenize=False, add_generation_prompt=True, add_vision_id=False
|
| 106 |
)
|
| 107 |
images = [
|
| 108 |
+
Image.open(requests.get(image_url, stream=True).raw).convert("RGB")
|
| 109 |
]
|
| 110 |
|
| 111 |
inputs = processor(
|
|
|
|
| 140 |
|
| 141 |
for j in range(len(messages)):
|
| 142 |
print("output:", j, generations[j].split(processor.tokenizer.eos_token)[0])
|
| 143 |
+
|
| 144 |
+
# output: 0 In the image, a woman wearing a shirt with a plaid and a dog are sitting together on a beach. The sun appears to be setting in the background, creating a warm and serene atmosphere.
|
| 145 |
```
|
| 146 |
|
| 147 |
---
|