MaartenGr commited on
Commit
02e15e4
·
verified ·
1 Parent(s): 1e58d60

Update README.md

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