Spaces:
No application file

File size: 346 Bytes
03bec31
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12

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'])