from handler import EndpointHandler # init handler my_handler = EndpointHandler(path=".") # prepare sample payload payload = {"inputs": { "context": """
Welcome to the official website of ExampleCorp.
ExampleCorp is a leading provider of innovative tech solutions.
Email: contact@example.com
Phone: +1-800-555-1234
""", "question": "What is the email address?"}} # test the handler pred=my_handler(payload) # show results print("pred", pred)