Skip to main content
image_agent_bytes.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Add a sample image

Place a JPEG named sample.jpg in the same directory as image_agent_bytes.py.
5

Run the example

Save the code above as image_agent_bytes.py, then run:
Full source: cookbook/90_models/ibm/watsonx/image_agent_bytes.py