From af151eb0454170ba64e704dd0171dc83087bf135 Mon Sep 17 00:00:00 2001 From: Ivan Borko Date: Thu, 18 Jan 2018 15:17:11 +0100 Subject: [PATCH] fix clarifai App usage --- vendors/clarifai_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendors/clarifai_.py b/vendors/clarifai_.py index 634efef..3e42364 100644 --- a/vendors/clarifai_.py +++ b/vendors/clarifai_.py @@ -3,7 +3,7 @@ def call_vision_api(image_filename, api_keys): - app = ClarifaiApp() + app = ClarifaiApp(api_key=api_keys['clarifai']['api_key']) model = app.models.get('general-v1.3') image = ClImage(file_obj=open(image_filename, 'rb')) result = model.predict([image])