tessl install tessl/pypi-modal@1.1.0Python client library for Modal, a serverless cloud computing platform that enables developers to run Python code in the cloud with on-demand access to compute resources.
Agent Success
Agent success rate when using this tile
85%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.6x
Baseline
Agent success rate without this tile
53%
Build a serverless image processing service that handles varying workload patterns with different scaling requirements for two distinct processing endpoints.
Create a background image processing function that:
Create a real-time image thumbnail generation function that:
@generates
"""
Image processing service with adaptive scaling configuration.
"""
def process_background_image(image_url: str) -> dict:
"""
Process an image with comprehensive transformations for background jobs.
Args:
image_url: URL of the image to process
Returns:
Dictionary containing processing results with keys 'status' and 'output_url'
"""
pass
def generate_thumbnail(image_url: str) -> dict:
"""
Generate a thumbnail from an image for real-time requests.
Args:
image_url: URL of the image to process
Returns:
Dictionary containing thumbnail generation results with keys 'status' and 'thumbnail_url'
"""
passProvides serverless compute platform with auto-scaling capabilities.