Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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)
|