update the code
Browse files- 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 =
|
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.
|