Visual Document Retrieval
ColPali
Safetensors
English
vidore-experimental
vidore
manu commited on
Commit
1ae20a5
·
verified ·
1 Parent(s): be3a596

Update handler.py

Browse files
Files changed (1) hide show
  1. 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) > 4:
40
- return {"message": "Send a maximum of 4 images at once. We recommend sending one by one."}
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 = []