We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9da1c commit cea667eCopy full SHA for cea667e
samples/count_tokens.py
@@ -59,8 +59,8 @@ def test_tokens_multimodal_image_file_api(self):
59
print(model.count_tokens(["Tell me about this instrument", organ_upload]))
60
# [END tokens_multimodal_image_file_api]
61
62
- def test_tokens_video_audio_file_api(self):
63
- # [START tokens_video_audio_file_api]
+ def test_tokens_multimodal_video_audio_file_api(self):
+ # [START tokens_multimodal_video_audio_file_api]
64
model = genai.GenerativeModel("models/gemini-1.5-flash")
65
audio_upload = genai.upload_file(media / "sample.mp3")
66
print(model.count_tokens(audio_upload))
0 commit comments