File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def test_tokens_multimodal_image_inline(self):
91
91
model = genai .GenerativeModel ("models/gemini-1.5-flash" )
92
92
93
93
prompt = "Tell me about this image"
94
- your_image_file = PIL .Image .open (media / "organ.jpg" )
94
+ your_image_file = PIL .Image .open (media / "organ.jpg" )
95
95
96
96
# Call `count_tokens` to get the input token count
97
97
# of the combined text and file (`total_tokens`).
@@ -115,7 +115,7 @@ def test_tokens_multimodal_image_file_api(self):
115
115
model = genai .GenerativeModel ("models/gemini-1.5-flash" )
116
116
117
117
prompt = "Tell me about this image"
118
- your_image_file = genai .upload_file (path = media / "organ.jpg" )
118
+ your_image_file = genai .upload_file (path = media / "organ.jpg" )
119
119
120
120
# Call `count_tokens` to get the input token count
121
121
# of the combined text and file (`total_tokens`).
You can’t perform that action at this time.
0 commit comments