omarelshehy commited on
Commit
3ddf73b
1 Parent(s): 39b5722

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -151,7 +151,8 @@ Then you can load this model and run inference.
151
  from sentence_transformers import SentenceTransformer
152
 
153
  # Download from the 🤗 Hub
154
- model = SentenceTransformer("omarelshehy/arabic-english-sts-matryoshka")
 
155
  # Run inference
156
  sentences = [
157
  'حب سعيد الواضح للأدب والموسيقى الغربية يتصادم باستمرار مع غضبه الصالح لما فعله الغرب للبقية.',
 
151
  from sentence_transformers import SentenceTransformer
152
 
153
  # Download from the 🤗 Hub
154
+ matryoshka_dim = 786
155
+ model = SentenceTransformer("omarelshehy/arabic-english-sts-matryoshka", truncate_dim=matryoshka_dim)
156
  # Run inference
157
  sentences = [
158
  'حب سعيد الواضح للأدب والموسيقى الغربية يتصادم باستمرار مع غضبه الصالح لما فعله الغرب للبقية.',