forked from kyegomez/swarms
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kyegomez#190 from elder-plinius/master
Assembly Line
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.