mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-07-20 12:10:41 +08:00
Add local api support, fix test case
This commit is contained in:
+11
-1
@@ -1,3 +1,6 @@
|
||||
from functools import partial
|
||||
from utils import config
|
||||
|
||||
JSON_HEADERS = {'Content-type': 'application/json', 'Accept': 'text/plain'}
|
||||
|
||||
Version, version, __version__, VERSION = ('0.4.4',) * 4
|
||||
@@ -7,4 +10,11 @@ from text.sentiment import posneg as sentiment
|
||||
from text.lang import language
|
||||
from images.fer import fer
|
||||
from images.features import facial_features
|
||||
from images.features import image_features
|
||||
from images.features import image_features
|
||||
|
||||
political = partial(political, config.api_root)
|
||||
sentiment = partial(sentiment, config.api_root)
|
||||
language = partial(language, config.api_root)
|
||||
fer = partial(fer, config.api_root)
|
||||
facial_features = partial(facial_features, config.api_root)
|
||||
image_features = partial(image_features, config.api_root)
|
||||
|
||||
Reference in New Issue
Block a user