swarms/playground/models/roboflow_example.py

13 lines
214 B

from swarms import RoboflowMultiModal
# Initialize the model
model = RoboflowMultiModal(
api_key="api",
project_id="your project id",
hosted=False,
)
# Run the model on an img
out = model("img.png")