Skip to content

Commit

Permalink
GPT4Vision + multimodal
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Nov 25, 2023
1 parent 539bfea commit dfa4197
Showing 1 changed file with 17 additions and 0 deletions.
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 = "What is the color of the object?"
img = "images/swarms.jpeg"

## Initialize the workflow
flow = Flow(
llm=llm,
max_loops="auto",
dashboard=True,
)

flow.run(task=task, img=img)

0 comments on commit dfa4197

Please sign in to comment.