import base64 | |
from handler import EndpointHandler | |
my_handler = EndpointHandler(path=".") | |
image = base64.b64encode(open("../sam-vit-huge/car.png", "rb").read()) | |
input = {"image": image, "points": [[450, 600]]} | |
result = my_handler(input) | |
print(result) | |