Space / app.py
Rivary's picture
Create app.py
06b59f0 verified
Raw History Blame Contribute Delete
351 Bytes
import streamlit as st
from transformers import pipeline
st.title("Sentiment Bot")
sentiment_pipeline = pipeline("sentiment-analysis")
user_input = st.text_area("Enter the Review")
if st.button("Analyze"):
result = sentiment_pipeline(user_input)
st.write("Sentiment", result[0]['label'])
st.write("Confident Score ",result[0]['score'])