Banana

CLIP

This API runs a general-purpose image classifier.
It compares each item in a list of prompts to each item in a list of image URLs.

Add this to your python code:

import banana_dev as banana
api_key={YOUR API KEY}
model_key="clip"
model_parameters = {"text": "banana","imageURL":"https://demo-images-banana.s3.us-west-1.amazonaws.com/image1.jpg"}

out = banana.run(api_key, model_key, model_parameters)
print(out)

Arguments:

Arg Description Required Type Example
api_key Your API key, found on the User Dashboard True string "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
model_key This models name True string "clip"
model_parameters Dictionary of custom tuning parameters False dict {"text": "banana","imageURL":"https://demo-images-banana.s3.us-west-1.amazonaws.com/image1.jpg"}