Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -36,8 +36,8 @@ class EndpointHandler():
|
|
36 |
if not isinstance(base64_images, list):
|
37 |
base64_images = [base64_images]
|
38 |
else:
|
39 |
-
if len(base64_images) >
|
40 |
-
return {"message": "Send a maximum of
|
41 |
|
42 |
# Decode each image from base64 and convert to a PIL Image
|
43 |
decoded_images = []
|
|
|
36 |
if not isinstance(base64_images, list):
|
37 |
base64_images = [base64_images]
|
38 |
else:
|
39 |
+
if len(base64_images) > 8:
|
40 |
+
return {"message": "Send a maximum of 8 images at once. We recommend sending one by one to improve load balancing."}
|
41 |
|
42 |
# Decode each image from base64 and convert to a PIL Image
|
43 |
decoded_images = []
|