Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
1 |
+
from sentence_transformers import SentenceTransformer
|
2 |
+
|
3 |
+
sentences = ["This is an example sentence", "Each sentence is converted"]
|
4 |
+
|
5 |
+
model = SentenceTransformer('sentence-transformers/all-miniLM-L6-v2')
|
6 |
+
embeddings = model.encode(sentences)
|
7 |
+
print(embeddings)
|