lgbird commited on
Commit
6d32a3c
1 Parent(s): a6b176e

Update handler.py

Browse files
Files changed (1) hide show
  1. 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]]: