mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 04:35:58 -10:00
8 lines
263 B
Python
8 lines
263 B
Python
from praisonaiagents.agent.image_agent import ImageAgent
|
|
|
|
# Create an image agent with normal mode
|
|
agent = ImageAgent(llm="dall-e-3")
|
|
|
|
# Generate an image
|
|
result = agent.chat("A cute baby sea otter playing with a laptop")
|
|
print("Image generation result:", result) |