abe62eb
1
2
3
4
5
6
7
import streamlit as st from sentence_transformers import SentenceTransformer sentences = st.text_area('Enter some text') model = SentenceTransformer('sentence-transformers/all-MiniLM-L12-v1') embeddings = model.encode(sentences) print(embeddings)