yilunzhang commited on
Commit
44b10fe
1 Parent(s): d79586f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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('sentence-transformers/all-mpnet-base-v2')
49
- model = ORTModelForFeatureExtraction.from_pretrained('sentence-transformers/all-mpnet-base-v2')
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')