Code
cookbook/models/google/gemini/image_editing.py
Usage
1
Create a virtual environment
Open the
Terminal
and create a python virtual environment.2
Prepare your image
Place an image file at
tmp/test_photo.png
or update the filepath in the code to point to your image.3
Set your API key
4
Install libraries
5
Run Agent