sayakpaul's picture
sayakpaul HF staff
Upload 3 files
379b9e6 verified
raw
history blame
216 Bytes
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")