Skip to content

Commit

Permalink
Merge pull request #190 from elder-plinius/master
Browse files Browse the repository at this point in the history
Assembly Line
  • Loading branch information
kyegomez committed Nov 25, 2023
2 parents 9e6c427 + 97a79ac commit 539bfea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions playground/demos/assembly/assembly.py
Original file line number Diff line number Diff line change
@@ -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)
Binary file added playground/demos/assembly/assembly_line.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 539bfea

Please sign in to comment.