nielsr HF staff commited on
Commit
f58523c
1 Parent(s): ef4abcf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -46,7 +46,7 @@ model.to("cuda:0")
46
  # prepare image and text prompt, using the appropriate prompt template
47
  url = "https://github.com/haotian-liu/LLaVA/blob/1a91fc274d7c35a9b50b3cb29c4247ae5837ce39/images/llava_v1_5_radar.jpg?raw=true"
48
  image = Image.open(requests.get(url, stream=True).raw)
49
- prompt = ""<|im_start|>system\nAnswer the questions.<|im_end|><|im_start|>user\n<image>\nWhat is shown in this image?<|im_end|><|im_start|>assistant\n""
50
 
51
  inputs = processor(prompt, image, return_tensors="pt").to("cuda:0")
52
 
 
46
  # prepare image and text prompt, using the appropriate prompt template
47
  url = "https://github.com/haotian-liu/LLaVA/blob/1a91fc274d7c35a9b50b3cb29c4247ae5837ce39/images/llava_v1_5_radar.jpg?raw=true"
48
  image = Image.open(requests.get(url, stream=True).raw)
49
+ prompt = "<|im_start|>system\nAnswer the questions.<|im_end|><|im_start|>user\n<image>\nWhat is shown in this image?<|im_end|><|im_start|>assistant\n"
50
 
51
  inputs = processor(prompt, image, return_tensors="pt").to("cuda:0")
52