Code
cookbook/models/ibm/watsonx/image_agent_bytes.py
Usage
1
Create a virtual environment
Open the
Terminal
and create a python virtual environment.2
Set your API key
3
Install libraries
4
Add sample image
Place a sample image named “sample.jpg” in the same directory as the script.
5
Run Agent
meta-llama/llama-3-2-11b-vision-instruct
) and requires a sample image file.