Update handler.py
Browse files- handler.py +1 -0
handler.py
CHANGED
@@ -3,6 +3,7 @@ from sentence_transformers import SentenceTransformer
|
|
3 |
|
4 |
class EndpointHandler():
|
5 |
def __init__(self, path=""):
|
|
|
6 |
self.model = SentenceTransformer(path, trust_remote_code=True).cuda()
|
7 |
|
8 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
|
3 |
|
4 |
class EndpointHandler():
|
5 |
def __init__(self, path=""):
|
6 |
+
print("MODEL INIT")
|
7 |
self.model = SentenceTransformer(path, trust_remote_code=True).cuda()
|
8 |
|
9 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|