Create a file image_agent.py with the following code:
image_agent.py
Copy
Ask AI
from phi.agent import Agentfrom phi.model.openai import OpenAIChatagent = Agent( model=OpenAIChat(id="gpt-4o"), markdown=True,)agent.print_response( "What are in these images? Is there any difference between them?", images=[ "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg", "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg", ],)