YuchengShi commited on
Commit
cc1f21f
·
verified ·
1 Parent(s): 9f2cc06

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -42,13 +42,13 @@ conversation = [
42
  {
43
  "role": "user",
44
  "content": [
45
- {"type": "text", "text": "What are these?"},
46
  {"type": "image"},
47
  ],
48
  },
49
  ]
50
  prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
51
- image_file = "cub-200/test1.png"
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