MaartenGr commited on
Commit
70af34e
·
verified ·
1 Parent(s): 8dfc656

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -200,13 +200,13 @@ Once the model is loaded, you can start generating output by directly referencin
200
 
201
 
202
  ```python
203
- # Prompt - add audio before text
204
  messages = [
205
  {
206
  "role": "user",
207
  "content": [
208
- {"type": "audio", "audio": "https://raw.githubusercontent.com/google-gemma/cookbook/refs/heads/main/Demos/sample-data/journal1.wav"},
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
  ]
211
  }
212
  ]
@@ -263,7 +263,7 @@ Once the model is loaded, you can start generating output by directly referencin
263
  messages = [
264
  {
265
  "role": "user", "content": [
266
- {"type": "image", "url": "https://raw.githubusercontent.com/google-gemma/cookbook/refs/heads/main/Demos/sample-data/GoldenGate.png"},
267
  {"type": "text", "text": "What is shown in this image?"}
268
  ]
269
  }
 
200
 
201
 
202
  ```python
203
+ # Prompt - add audio after text
204
  messages = [
205
  {
206
  "role": "user",
207
  "content": [
 
208
  {"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."},
209
+ {"type": "audio", "audio": "https://raw.githubusercontent.com/google-gemma/cookbook/refs/heads/main/apps/sample-data/journal1.wav"},
210
  ]
211
  }
212
  ]
 
263
  messages = [
264
  {
265
  "role": "user", "content": [
266
+ {"type": "image", "url": "https://raw.githubusercontent.com/google-gemma/cookbook/refs/heads/main/apps/sample-data/GoldenGate.png"},
267
  {"type": "text", "text": "What is shown in this image?"}
268
  ]
269
  }