aoiferyan commited on
Commit
3e14644
1 Parent(s): 5c925a8

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from sentence_transformers import SentenceTransformer
2
+ sentences = ["This is an example sentence", "Each sentence is converted"]
3
+
4
+ model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
5
+ embeddings = model.encode(sentences)
6
+ print(embeddings)