Open myoshimu opened 1 month ago
Hey all, i tried the above code as I was facing the same issue, the above code is giving the following error
Unexpected item type: <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=270x184 at 0x7C60195D9CC0>.Only types that represent a single Content or a single Part are supported here.
not sure if I am doing something wrong
@holtskinner +1, I am seeing this issue too.
I've also been hitting numerous quota issues despite adding:
add_sleep_after_page = True
sleep_time_after_page = 5
File Name
https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/retrieval-augmented-generation/intro_multimodal_rag.ipynb
What happened?
Following code failed with "FzErrorArgument: code=4: pixmap must be Grayscale, RGB, or CMYK to save as JPEG" error:
Relevant log output
I think get_image_for_gemini() function in gemini/use-cases/retrieval-augmented-generation/utils/intro_multimodal_rag_utils.py should be modified as below:
Code of Conduct