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.
22 lines
547 B
22 lines
547 B
from swarms.models.gpt4_vision_api import GPT4VisionAPI
|
|
from swarms.structs import Agent
|
|
|
|
llm = GPT4VisionAPI()
|
|
|
|
task = (
|
|
"Analyze this image of an assembly line and identify any issues"
|
|
" such as misaligned parts, defects, or deviations from the"
|
|
" standard assembly process. IF there is anything unsafe in the"
|
|
" image, explain why it is unsafe and how it could be improved."
|
|
)
|
|
img = "assembly_line.jpg"
|
|
|
|
# Initialize the workflow
|
|
agent = Agent(
|
|
llm=llm,
|
|
max_loops=1,
|
|
dashboard=True,
|
|
)
|
|
|
|
agent.run(task=task, img=img)
|