File size: 546 Bytes
b730691
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from handler import EndpointHandler

# Initialize handler
my_handler = EndpointHandler()

# Prepare sample payload
sample_payload = {
    "image_url": "https://fitter-app.imgix.net/https%3A%2F%2Ffitter-uploads-prod.s3.ap-southeast-2.amazonaws.com%2Fuploads%2F2%2F24fe70d4-ec4e-4d3c-bae5-fc8ac689ee3f.jpg?ixlib=rb-4.0.0&fit=crop&fm=png&auto=compress&w=1080&h=720&crop=focalpoint&fp-x=0.5&fp-y=0.5&fp-z=1.0&s=6664946657e1f7325c08aa5d89978470"  # Replace with a real image URL
}

# Test the handler
result = my_handler(sample_payload)
print(result)