Skip to content

Commit 2c33392

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genai/tools/tools_code_exec_with_txt_local_img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def generate_content() -> GenerateContentResponse:
3838

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

4343
response = client.models.generate_content(
4444
model="gemini-2.0-flash-exp",

0 commit comments

Comments
 (0)