File size: 595 Bytes
9900ce8 1c3b919 9900ce8 1c3b919 9900ce8 b96abbc 8cf1442 b96abbc b0b6bac 9900ce8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import pkg_resources
import logging
class EndpointHandler:
def __init__(self, path=""):
dists = [str(d).replace(" ","==") for d in pkg_resources.working_set]
for i in dists:
logging.warning(i)
print('so i try to print')
logging.info('and i try using logging.info')
logging.warning('and end off with logging.warning')
def __call__(self):
"""
:param data: A dictionary contains `inputs` and optional `image` field.
:return: A dictionary with `image` field contains image in base64.
"""
return |