sentimentdemo / app.py
philmui's picture
sentiment analysis done
f0fe84f
raw
history blame contribute delete
187 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline("sentiment-analysis")
text = st.text_area("Enter your sentence!")
if text:
out = pipe(text)
st.json(out)