from handler import EndpointHandler | |
from PIL import Image | |
import numpy as np | |
import matplotlib.pyplot as plt | |
# init handler | |
my_handler = EndpointHandler(path=".") | |
# load image | |
img = Image.open("angelina.jpg") | |
img_np = np.array(img) | |
# call handler | |
result = my_handler(img_np) | |
print(result) | |