textsentiment / app.py
hazrat's picture
Update app.py
cdc26e9
raw
history blame
No virus
242 Bytes
import streamlit as st
from transformers import pipeline
st.title('Example of text sentiments. Input your text below')
pipe = pipeline('sentiment-analysis')
text = st.text_area('enter some text')
if text:
out = pipe(text)
st.json(out)