ADD: Endpoint for multi api requests

This commit is contained in:
Chris Lee
2015-06-02 12:11:27 -04:00
parent c82fd16b11
commit 49a94d2986
5 changed files with 186 additions and 12 deletions
+15
View File
@@ -45,11 +45,26 @@ class Settings(ConfigParser.ConfigParser):
None
)
TEXT_APIS = [
'text_tags',
'political',
'sentiment',
'language'
]
IMAGE_APIS = [
'fer',
'facial_features',
'image_features'
]
API_NAMES = IMAGE_APIS + TEXT_APIS + ["predict_text", "predict_image"]
SETTINGS = Settings(files=[
os.path.expanduser("~/.indicorc"),
os.path.join(os.getcwd(), '.indicorc')
])
api_key = SETTINGS.api_key()
cloud = SETTINGS.cloud()
PUBLIC_API_HOST = 'apiv2.indico.io'