embedding / app.py
geneweng's picture
Update app.py
01d9e25
raw
history blame
182 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('ner')
text = st.text_area('Enter some text to see its entities:')
if text:
out = pipe(text)
st.json(out)