Skip to content

xkcd bird classifier

Is this a bird?

import marvin

photo = marvin.beta.Image(
    "https://images.unsplash.com/photo-1613891188927-14c2774fb8d7",
)

result = marvin.beta.classify(
    photo,
    labels=["bird", "not bird"]
)

Yes!

assert result == "bird"