You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/mm_agent_example.py

17 lines
383 B

1 year ago
from swarms.agents import MultiModalAgent
1 year ago
1 year ago
load_dict = {
1 year ago
"ImageCaptioning": "cudo"
1 year ago
}
node = MultiModalAgent(load_dict)
1 year ago
text = node.run_text("What is your name? Generate a picture of yourself")
img = node.run_img("/image1", "What is this image about?")
chat = node.chat(
"What is your name? Generate a picture of yourself. What is this image about?",
streaming=True
)