Upload handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -6,7 +6,7 @@ class EndpointHandler():
|
|
6 |
# Preload all the elements you are going to need at inference.
|
7 |
# pseudo:
|
8 |
# self.model= load_model(path)
|
9 |
-
self.embedding_model = SentenceTransformer(
|
10 |
|
11 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
12 |
"""
|
|
|
6 |
# Preload all the elements you are going to need at inference.
|
7 |
# pseudo:
|
8 |
# self.model= load_model(path)
|
9 |
+
self.embedding_model = SentenceTransformer(path,trust_remote_code=True,)
|
10 |
|
11 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
12 |
"""
|