mishig HF staff commited on
Commit
caeb124
1 Parent(s): e7d73fd

Add code highlights

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -107,7 +107,7 @@ snapshot_download(repo_id="mistral-community/pixtral-12b-240910", local_dir="...
107
  ## Images
108
 
109
  You can encode images as follows
110
- ```
111
  from mistral_common.protocol.instruct.messages import (
112
  UserMessage,
113
  TextChunk,
@@ -146,7 +146,7 @@ print("# images", len(images))
146
  ## Image URLs
147
 
148
  You can pass image url which will be automatically downloaded
149
- ```
150
  url_dog = "https://picsum.photos/id/237/200/300"
151
  url_mountain = "https://picsum.photos/seed/picsum/200/300"
152
 
@@ -176,7 +176,7 @@ print("# images", len(images))
176
  # ImageData
177
 
178
  You can also pass image encoded as base64
179
- ```
180
  tokenized = tokenizer.encode_chat_completion(
181
  ChatCompletionRequest(
182
  messages=[
 
107
  ## Images
108
 
109
  You can encode images as follows
110
+ ```python
111
  from mistral_common.protocol.instruct.messages import (
112
  UserMessage,
113
  TextChunk,
 
146
  ## Image URLs
147
 
148
  You can pass image url which will be automatically downloaded
149
+ ```python
150
  url_dog = "https://picsum.photos/id/237/200/300"
151
  url_mountain = "https://picsum.photos/seed/picsum/200/300"
152
 
 
176
  # ImageData
177
 
178
  You can also pass image encoded as base64
179
+ ```python
180
  tokenized = tokenizer.encode_chat_completion(
181
  ChatCompletionRequest(
182
  messages=[