File size: 255 Bytes
2ca44ee
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from handler import EndpointHandler
from PIL import Image
import base64

# init handler
my_handler = EndpointHandler(path=".")

# prepare sample payload
image = Image.open("test.png")
payload = {"image": base64.b64encode(image)}

pred=my_handler(payload)