Update README.md
#58
by
mobi
- opened
README.md
CHANGED
@@ -197,7 +197,7 @@ conversation = [
|
|
197 |
|
198 |
|
199 |
# Preprocess the inputs
|
200 |
-
text_prompt = processor.apply_chat_template(conversation, add_generation_prompt=True)
|
201 |
# Excepted output: '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Describe this image.<|im_end|>\n<|im_start|>assistant\n'
|
202 |
|
203 |
inputs = processor(
|
|
|
197 |
|
198 |
|
199 |
# Preprocess the inputs
|
200 |
+
text_prompt = processor.apply_chat_template(conversation, tokenize=False, add_generation_prompt=True)
|
201 |
# Excepted output: '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Describe this image.<|im_end|>\n<|im_start|>assistant\n'
|
202 |
|
203 |
inputs = processor(
|