File size: 216 Bytes
379b9e6 |
1 2 3 4 5 6 7 8 |
from handler import EndpointHandler
my_handler = EndpointHandler()
payload = {"inputs": {"prompt": "a dog waiting for its companion to come."}}
# test the handler
image = my_handler(payload)
image.save("image.png") |