mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-09-12 12:02:15 +08:00
REMOVE: remove sentiment_hq from text_apis by default
This commit is contained in:
@@ -25,3 +25,4 @@ v0.5.3, Wed Apr 15 -- Added scipy to requirements, edited Readme to not break py
|
|||||||
v0.6.0, Thu May 29 -- Remove numpy / scipy dependency in favor of Pillow
|
v0.6.0, Thu May 29 -- Remove numpy / scipy dependency in favor of Pillow
|
||||||
v0.7.0, Tue Jun 9 -- Added support for calling multiple APIs in a single function and accepting filenames as image API inputs
|
v0.7.0, Tue Jun 9 -- Added support for calling multiple APIs in a single function and accepting filenames as image API inputs
|
||||||
v0.7.1 Thu Jun 11 -- High quality sentiment API for private beta, fix for multi API support
|
v0.7.1 Thu Jun 11 -- High quality sentiment API for private beta, fix for multi API support
|
||||||
|
v0.7.2 Thu Jun 11 -- Remove sentiment_hq from text apis by default
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
Version, version, __version__, VERSION = ('0.7.1',) * 4
|
Version, version, __version__, VERSION = ('0.7.2',) * 4
|
||||||
|
|
||||||
JSON_HEADERS = {
|
JSON_HEADERS = {
|
||||||
'Content-type': 'application/json',
|
'Content-type': 'application/json',
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ AVAILABLE_APIS = {
|
|||||||
'image': IMAGE_APIS
|
'image': IMAGE_APIS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# TODO: remove this line when sentiment_hq is released publicly
|
||||||
|
AVAILABLE_APIS['text'].remove('sentiment_hq')
|
||||||
|
|
||||||
def multi(data, datatype, apis, batch=False, **kwargs):
|
def multi(data, datatype, apis, batch=False, **kwargs):
|
||||||
"""
|
"""
|
||||||
Helper to make multi requests of different types.
|
Helper to make multi requests of different types.
|
||||||
|
|||||||
@@ -13,9 +13,6 @@ from indicoio import sentiment_hq, batch_sentiment_hq
|
|||||||
from indicoio import predict_image, predict_text, batch_predict_image, batch_predict_text
|
from indicoio import predict_image, predict_text, batch_predict_image, batch_predict_text
|
||||||
from indicoio.utils.errors import IndicoError
|
from indicoio.utils.errors import IndicoError
|
||||||
|
|
||||||
# TODO: remove once sentiment_hq is added to the public API
|
|
||||||
config.TEXT_APIS.remove("sentiment_hq")
|
|
||||||
|
|
||||||
DIR = os.path.dirname(os.path.realpath(__file__))
|
DIR = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
class BatchAPIRun(unittest.TestCase):
|
class BatchAPIRun(unittest.TestCase):
|
||||||
|
|||||||
Reference in New Issue
Block a user