test-sam-handler / test_handler.py
Gilad Avidan
initial commit
e724e19
raw history blame
No virus
238 Bytes
import base64
from handler import EndpointHandler
my_handler = EndpointHandler(path=".")
image = base64.b64encode(open("./car.png", "rb").read())
input = {"image": image, "points": [[450, 600]]}
result = my_handler(input)
print(result)