update readme
Browse files
README.md
CHANGED
@@ -40,8 +40,8 @@ def mean_pooling(model_output, attention_mask):
|
|
40 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
41 |
|
42 |
# Load model from HuggingFace Hub
|
43 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
44 |
-
model = AutoModel.from_pretrained('
|
45 |
|
46 |
# Tokenize sentences
|
47 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
|
|
40 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
41 |
|
42 |
# Load model from HuggingFace Hub
|
43 |
+
tokenizer = AutoTokenizer.from_pretrained('obrizum/all-mpnet-base-v2')
|
44 |
+
model = AutoModel.from_pretrained('obrizum/all-mpnet-base-v2')
|
45 |
|
46 |
# Tokenize sentences
|
47 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|