Clarifai looks like pretty amazing. I'm trying to integrate it into a python app for key-wording images. What is the code to pull the "name"s out of the clarifai response?
For Amazon I use this simple two lines to extract the label and add it to a keywords widget
for Label in response["Labels"]:
But clarifai has a multi-dimensional array that I haven't been able to figure out how to parse out the names. I assume it would be something like this
model = app.models.get("general-v1.3") # get the general model
response = model.predict_by_url(url=str("https://s3.amazonaws.com/" + bucket_name + "/" + fileName))
for Label in response["concepts"]:
But I have to go through many layers -> outputs:data:concepts:name
Anyone know enough python to do this?