File size: 354 Bytes
fcf5471 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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'])
|