dang1812's picture
Update app.py
d93543e unverified
raw
history blame
235 Bytes
from transformers import pipeline
import streamlit as st #Web App
#title
st.title("Text Sentiment Analysis")
sentiment_pipeline = pipeline("sentiment-analysis")
data = ["I love you", "I hate you"]
st.write(sentiment_pipeline(data))