diff --git a/backend/python/sentencetransformers/backend.py b/backend/python/sentencetransformers/backend.py index 905015e1a3c..2a20bf60914 100755 --- a/backend/python/sentencetransformers/backend.py +++ b/backend/python/sentencetransformers/backend.py @@ -55,7 +55,7 @@ def LoadModel(self, request, context): """ model_name = request.Model try: - self.model = SentenceTransformer(model_name) + self.model = SentenceTransformer(model_name, trust_remote_code=request.TrustRemoteCode) except Exception as err: return backend_pb2.Result(success=False, message=f"Unexpected {err=}, {type(err)=}") diff --git a/backend/python/sentencetransformers/requirements.txt b/backend/python/sentencetransformers/requirements.txt index 8e1b01957c7..b9cb6061ee5 100644 --- a/backend/python/sentencetransformers/requirements.txt +++ b/backend/python/sentencetransformers/requirements.txt @@ -1,3 +1,5 @@ grpcio==1.66.1 protobuf -certifi \ No newline at end of file +certifi +datasets +einops \ No newline at end of file