Commit
·
44b10fe
1
Parent(s):
d79586f
Update README.md
Browse files
README.md
CHANGED
|
@@ -45,8 +45,8 @@ def mean_pooling(model_output, attention_mask):
|
|
| 45 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
| 46 |
|
| 47 |
# Load model from HuggingFace Hub
|
| 48 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
| 49 |
-
model = ORTModelForFeatureExtraction.from_pretrained('
|
| 50 |
|
| 51 |
# Tokenize sentences
|
| 52 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
|
|
|
| 45 |
sentences = ['This is an example sentence', 'Each sentence is converted']
|
| 46 |
|
| 47 |
# Load model from HuggingFace Hub
|
| 48 |
+
tokenizer = AutoTokenizer.from_pretrained('yilunzhang/all-mpnet-base-v2-onnx')
|
| 49 |
+
model = ORTModelForFeatureExtraction.from_pretrained('yilunzhang/all-mpnet-base-v2-onnx')
|
| 50 |
|
| 51 |
# Tokenize sentences
|
| 52 |
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|