demo-app / app.py
dipankartnt's picture
Update app.py
0eab9ad
raw
history blame
249 Bytes
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)
st.json(embeddings)