Spaces:
No application file

Sentiment_Analysis / streamlit_app.py
khadijamushtaq's picture
Upload streamlit_app.py
03bec31 verified
Raw History Blame Contribute Delete
346 Bytes
import streamlit as st
from transformers import pipline
sentiment_analysis = pipline("sentiment_analysis",model="siebert?sentiment-roberta-large-english")
st.title("Sentiment Analysis")
rev = st.text_input("Enter a review to analyze its sentiment.")
analyze = st.button("Analyze")
if analyze:
st.write(sentiment_analysis(rev)[0]['label'])