dmedhi commited on
Commit
a78bbe5
·
verified ·
1 Parent(s): 96e3c72

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -52,8 +52,8 @@ import torch
52
  import torch.nn.functional as F
53
 
54
  # Load model and tokenizer
55
- model = AutoModel.from_pretrained("dmedhi/pawanembd-68m")
56
- tokenizer = AutoTokenizer.from_pretrained("dmedhi/pawanembd-68m")
57
 
58
  # Encode sentences
59
  sentences = ["This is an example sentence", "Each sentence is converted to a vector"]
@@ -76,7 +76,7 @@ print(f"Similarity: {similarity.item():.4f}")
76
  from sentence_transformers import SentenceTransformer
77
  from sentence_transformers.util import cos_sim
78
 
79
- model = SentenceTransformer("dmedhi/pawanembd-68m")
80
 
81
  sentences = ["This is an example sentence", "Each sentence is converted to a vector"]
82
  embeddings = model.encode(sentences)
 
52
  import torch.nn.functional as F
53
 
54
  # Load model and tokenizer
55
+ model = AutoModel.from_pretrained("dmedhi/PawanEmbd-68M")
56
+ tokenizer = AutoTokenizer.from_pretrained("dmedhi/PawanEmbd-68M")
57
 
58
  # Encode sentences
59
  sentences = ["This is an example sentence", "Each sentence is converted to a vector"]
 
76
  from sentence_transformers import SentenceTransformer
77
  from sentence_transformers.util import cos_sim
78
 
79
+ model = SentenceTransformer("dmedhi/PawanEmbd-68M")
80
 
81
  sentences = ["This is an example sentence", "Each sentence is converted to a vector"]
82
  embeddings = model.encode(sentences)