Email + password auth from client

This commit is contained in:
Madison May
2014-12-18 15:27:16 -05:00
parent 9ed17b8f34
commit 8149908328
6 changed files with 34 additions and 17 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import requests
import numpy as np
from indicoio.utils import api_handler
def fer(api_root, image, batch=False):
def fer(api_root, image, batch=False, auth=None):
"""
Given a grayscale input image of a face, returns a probability distribution over emotional state.
Input should be in a list of list format, resizing will be attempted internally but for best
@@ -28,4 +28,4 @@ def fer(api_root, image, batch=False):
:rtype: Dictionary containing emotion probability pairs
"""
return api_handler(image, api_root + "fer", batch=batch)
return api_handler(image, api_root + "fer", batch=batch, auth=auth)