RaushanTurganbay HF staff commited on
Commit
6ceb2ed
·
verified ·
1 Parent(s): bdb8c4a
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -103,8 +103,9 @@ output = model.generate(**inputs, max_new_tokens=200, do_sample=False)
103
  print(processor.decode(output[0][2:], skip_special_tokens=True))
104
  ```
105
 
 
106
  From transformers>=v4.48, you can also pass image url or local path to the conversation history, and let the chat template handle the rest.
107
- Chat template will load the image for you and return inputs in `torch.Tensor` which you can pass directky to `model.generate()`
108
 
109
  ```python
110
  messages = [
 
103
  print(processor.decode(output[0][2:], skip_special_tokens=True))
104
  ```
105
 
106
+ -----------
107
  From transformers>=v4.48, you can also pass image url or local path to the conversation history, and let the chat template handle the rest.
108
+ Chat template will load the image for you and return inputs in `torch.Tensor` which you can pass directly to `model.generate()`
109
 
110
  ```python
111
  messages = [