From a4348a8b95c57f1d76f77363709e42cf63ff87b9 Mon Sep 17 00:00:00 2001 From: pliny <133052465+elder-plinius@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:27:08 -0800 Subject: [PATCH] Create assembly.py --- playground/demos/assembly/assembly.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 playground/demos/assembly/assembly.py diff --git a/playground/demos/assembly/assembly.py b/playground/demos/assembly/assembly.py new file mode 100644 index 00000000..b0f728e9 --- /dev/null +++ b/playground/demos/assembly/assembly.py @@ -0,0 +1,17 @@ +from swarms.structs import Flow +from swarms.models.gpt4_vision_api import GPT4VisionAPI + + +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 +flow = Flow( + llm=llm, + max_loops=1, + dashboard=True, +) + +flow.run(task=task, img=img)