<gh_stars>0
from clarifai.rest import ClarifaiApp
from clarifai.rest import Image as ClImage
import pprint

print ('First Clarifai Image Analysis...')

app = ClarifaiApp(api_key='<KEY>')

model = app.models.get('general-v1.3')
image = ClImage(file_obj=open('../../../images/top-hp-001.jpg','rb'))

#response=model.predict([image])

response=model.predict([ClImage(file_obj=open('../../../images/top-hp-001.jpg','rb'))])

pprint.pprint(response)

counter = 0
for row in response['concepts']:
    counter += 1
    print('Label ' + str(counter) + ': ' + row['name'] + ',' + str(row['value']))


print ('Completed!')

from clarifai.rest import ClarifaiApp
from clarifai.rest import Image as ClImage
import pprint

print ('First Clarifai Image Analysis...')

app = ClarifaiApp(api_key='<KEY>')

model = app.models.get('general-v1.3')
image = ClImage(file_obj=open('../../../images/top-hp-001.jpg','rb'))

#response=model.predict([image])

response=model.predict([ClImage(file_obj=open('../../../images/top-hp-001.jpg','rb'))])

pprint.pprint(response)

counter = 0
for row in response['concepts']:
    counter += 1
    print('Label ' + str(counter) + ': ' + row['name'] + ',' + str(row['value']))


print ('Completed!')
#response=model.predict([image])