Skip to content

Commit 203a4a4

Browse files
committed
format
Change-Id: I5a47b80da6f07b26a8079e33b2350ace3454bb50
1 parent edc6fa0 commit 203a4a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/count_tokens.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_tokens_multimodal_image_inline(self):
9191
model = genai.GenerativeModel("models/gemini-1.5-flash")
9292

9393
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")
9595

9696
# Call `count_tokens` to get the input token count
9797
# of the combined text and file (`total_tokens`).
@@ -115,7 +115,7 @@ def test_tokens_multimodal_image_file_api(self):
115115
model = genai.GenerativeModel("models/gemini-1.5-flash")
116116

117117
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")
119119

120120
# Call `count_tokens` to get the input token count
121121
# of the combined text and file (`total_tokens`).

0 commit comments

Comments
 (0)