mughosh commited on
Commit
8fd6cac
1 Parent(s): da6a6ca

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -32,7 +32,7 @@ Then you can use the model like this:
32
  from sentence_transformers import SentenceTransformer
33
  sentences = ["This is an example sentence", "Each sentence is converted"]
34
 
35
- model = SentenceTransformer('paecter')
36
  embeddings = model.encode(sentences)
37
  print(embeddings)
38
  ```
@@ -58,8 +58,8 @@ def mean_pooling(model_output, attention_mask):
58
  sentences = ['This is an example sentence', 'Each sentence is converted']
59
 
60
  # Load model from HuggingFace Hub
61
- tokenizer = AutoTokenizer.from_pretrained('paecter')
62
- model = AutoModel.from_pretrained('paecter')
63
 
64
  # Tokenize sentences
65
  encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
 
32
  from sentence_transformers import SentenceTransformer
33
  sentences = ["This is an example sentence", "Each sentence is converted"]
34
 
35
+ model = SentenceTransformer('mpi-inno-comp/paecter')
36
  embeddings = model.encode(sentences)
37
  print(embeddings)
38
  ```
 
58
  sentences = ['This is an example sentence', 'Each sentence is converted']
59
 
60
  # Load model from HuggingFace Hub
61
+ tokenizer = AutoTokenizer.from_pretrained('mpi-inno-comp/paecter')
62
+ model = AutoModel.from_pretrained('mpi-inno-comp/paecter')
63
 
64
  # Tokenize sentences
65
  encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')