Skip to content

Commit 4b6044a

Browse files
committed
✏️ add trust_remote_code=True for retrievers
1 parent 63de7e5 commit 4b6044a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ontolearner/base/learner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def load(self, model_id: str) -> None:
331331
Raises:
332332
NotImplementedError: If not implemented by concrete class.
333333
"""
334-
self.embedding_model = SentenceTransformer(model_id)
334+
self.embedding_model = SentenceTransformer(model_id, trust_remote_code=True)
335335

336336
def index(self, inputs: List[str]):
337337
"""

0 commit comments

Comments
 (0)