MaartenGr commited on
Commit
fee6332
·
verified ·
1 Parent(s): cd0bc28

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -201,13 +201,13 @@ Once the model is loaded, you can start generating output by directly referencin
201
 
202
 
203
  ```python
204
- # Prompt - add audio before text
205
  messages = [
206
  {
207
  "role": "user",
208
  "content": [
209
- {"type": "audio", "audio": "https://raw.githubusercontent.com/google-gemma/cookbook/refs/heads/main/Demos/sample-data/journal1.wav"},
210
  {"type": "text", "text": "Transcribe the following speech segment in its original language. Follow these specific instructions for formatting the answer:\n* Only output the transcription, with no newlines.\n* When transcribing numbers, write the digits, i.e. write 1.7 and not one point seven, and write 3 instead of three."},
 
211
  ]
212
  }
213
  ]
@@ -264,7 +264,7 @@ Once the model is loaded, you can start generating output by directly referencin
264
  messages = [
265
  {
266
  "role": "user", "content": [
267
- {"type": "image", "url": "https://raw.githubusercontent.com/google-gemma/cookbook/refs/heads/main/Demos/sample-data/GoldenGate.png"},
268
  {"type": "text", "text": "What is shown in this image?"}
269
  ]
270
  }
 
201
 
202
 
203
  ```python
204
+ # Prompt - add audio after text
205
  messages = [
206
  {
207
  "role": "user",
208
  "content": [
 
209
  {"type": "text", "text": "Transcribe the following speech segment in its original language. Follow these specific instructions for formatting the answer:\n* Only output the transcription, with no newlines.\n* When transcribing numbers, write the digits, i.e. write 1.7 and not one point seven, and write 3 instead of three."},
210
+ {"type": "audio", "audio": "https://raw.githubusercontent.com/google-gemma/cookbook/refs/heads/main/apps/sample-data/journal1.wav"},
211
  ]
212
  }
213
  ]
 
264
  messages = [
265
  {
266
  "role": "user", "content": [
267
+ {"type": "image", "url": "https://raw.githubusercontent.com/google-gemma/cookbook/refs/heads/main/apps/sample-data/GoldenGate.png"},
268
  {"type": "text", "text": "What is shown in this image?"}
269
  ]
270
  }