Visual Document Retrieval
ColPali
Safetensors
English
vidore-experimental
vidore
manuel commited on
Commit
98543a7
·
1 Parent(s): 39d194f
Files changed (1) hide show
  1. handler.py +1 -5
handler.py CHANGED
@@ -78,12 +78,8 @@ class EndpointHandler():
78
 
79
  elif input_type == "processed_images":
80
  try:
81
- binary = base64.b64decode(inputs)
82
- print("decoded binary")
83
- buffer = io.BytesIO(binary)
84
- print("buffered")
85
  batch = torch.load(buffer, map_location=self.model.device)
86
- print("loaded as torch")
87
  except Exception as e:
88
  return {"error": f"Error processing preprocessed images: {str(e)}"}
89
 
 
78
 
79
  elif input_type == "processed_images":
80
  try:
81
+ buffer = io.BytesIO(base64.b64decode(inputs))
 
 
 
82
  batch = torch.load(buffer, map_location=self.model.device)
 
83
  except Exception as e:
84
  return {"error": f"Error processing preprocessed images: {str(e)}"}
85