Update README.md
Browse files
README.md
CHANGED
@@ -42,13 +42,13 @@ conversation = [
|
|
42 |
{
|
43 |
"role": "user",
|
44 |
"content": [
|
45 |
-
{"type": "text", "text": "What
|
46 |
{"type": "image"},
|
47 |
],
|
48 |
},
|
49 |
]
|
50 |
prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
|
51 |
-
image_file = "
|
52 |
raw_image = Image.open(requests.get(image_file, stream=True).raw)
|
53 |
inputs = processor(images=raw_image, text=prompt, return_tensors='pt').to("cuda", torch.float16)
|
54 |
|
|
|
42 |
{
|
43 |
"role": "user",
|
44 |
"content": [
|
45 |
+
{"type": "text", "text": "What is the bird name? Give your reasoning"},
|
46 |
{"type": "image"},
|
47 |
],
|
48 |
},
|
49 |
]
|
50 |
prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
|
51 |
+
image_file = "https://www.allaboutbirds.org/guide/assets/photo/297602831-1280px.jpg"
|
52 |
raw_image = Image.open(requests.get(image_file, stream=True).raw)
|
53 |
inputs = processor(images=raw_image, text=prompt, return_tensors='pt').to("cuda", torch.float16)
|
54 |
|