demo-app / app.py
dipankartnt's picture
Create app.py
abe62eb
raw
history blame
247 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)
print(embeddings)