Spaces:
Runtime error
Runtime error
dipankartnt
commited on
Commit
•
abe62eb
1
Parent(s):
94d2c7e
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from sentence_transformers import SentenceTransformer
|
3 |
+
sentences = st.text_area('Enter some text')
|
4 |
+
|
5 |
+
model = SentenceTransformer('sentence-transformers/all-MiniLM-L12-v1')
|
6 |
+
embeddings = model.encode(sentences)
|
7 |
+
print(embeddings)
|