Skip to content

Commit 1782052

Browse files
committed
fix(genai): Fix for CICD issues - update Pillow pkg
1 parent 2c33392 commit 1782052

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

genai/tools/tools_code_exec_with_txt_local_img.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ def generate_content() -> GenerateContentResponse:
3737
"""
3838

3939
# Image source: https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Monty_open_door.svg/640px-Monty_open_door.svg.png
40-
with open("test_data/640px-Monty_open_door.svg.png", "rb") as fp:
41-
image_data = Image.open(fp)
40+
image_data = Image.open(open("test_data/640px-Monty_open_door.svg.png", "rb"))
4241

4342
response = client.models.generate_content(
4443
model="gemini-2.0-flash-exp",

0 commit comments

Comments
 (0)