Visual Document Retrieval
Transformers
Safetensors
ColPali
English
pretraining
adrish commited on
Commit
0d89ced
·
1 Parent(s): 16843db

update the code

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -13,7 +13,7 @@ class EndpointHandler:
13
  If no model path is provided, it defaults to 'vidore/colpali-v1.3-hf'.
14
  """
15
  if model_path is None:
16
- model_path = "vidore/colpali-v1.3-hf"
17
  try:
18
  self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
19
  # Use the specialized ColPaliForRetrieval class.
 
13
  If no model path is provided, it defaults to 'vidore/colpali-v1.3-hf'.
14
  """
15
  if model_path is None:
16
+ model_path = os.path.dirname(os.path.realpath(__file__))
17
  try:
18
  self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
19
  # Use the specialized ColPaliForRetrieval class.