mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-08-04 12:33:47 +08:00
ADD: Testing for image processing in multi image predict
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from indicoio.config import TEXT_APIS, IMAGE_APIS, API_NAMES
|
||||
from indicoio.utils.errors import IndicoError
|
||||
from indicoio.utils import api_handler
|
||||
from indicoio.utils import api_handler, image_preprocess
|
||||
|
||||
|
||||
CLIENT_SERVER_MAP = dict((api, api.strip().replace("_", "").lower()) for api in API_NAMES)
|
||||
@@ -96,7 +96,7 @@ def predict_image(image, apis=IMAGE_APIS, cloud=None, batch=False, api_key=None,
|
||||
|
||||
return multi(
|
||||
api="apis",
|
||||
data=image,
|
||||
data=image_preprocess(image, batch=batch),
|
||||
type="image",
|
||||
available=IMAGE_APIS,
|
||||
cloud=cloud,
|
||||
|
||||
Reference in New Issue
Block a user