tomaarsen HF Staff commited on
Commit
3a0e679
·
verified ·
1 Parent(s): 14d2ce1

Add missing `trust_remote_code=True` for Sentence Transformers

Browse files

Hello!

Very exciting work! I'm preparing some comms as well. I noticed a `trust_remote_code=True` was missing, which is required to load a custom module from this repository to the users' devices.

- Tom Aarsen

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -184,7 +184,7 @@ pip install -U sentence-transformers
184
 
185
  ```python
186
  from sentence_transformers import SparseEncoder
187
- model = SparseEncoder("Linkup-Platform/linkup-sparseup-embed-v1")
188
  queries = [
189
  "England football player highest paid",
190
  "NYC capital which country?",
 
184
 
185
  ```python
186
  from sentence_transformers import SparseEncoder
187
+ model = SparseEncoder("Linkup-Platform/linkup-sparseup-embed-v1", trust_remote_code=True)
188
  queries = [
189
  "England football player highest paid",
190
  "NYC capital which country?",