markaw commited on
Commit
3abce5f
·
verified ·
1 Parent(s): 40611d6

Upload handler.py

Browse files
Files changed (1) hide show
  1. 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("markaw/NV-Embed-v2")
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
  """