Spaces:
Sleeping
Sleeping
File size: 374 Bytes
5dbf6d4 21cfab8 5dbf6d4 21cfab8 5dbf6d4 21cfab8 5dbf6d4 21cfab8 5dbf6d4 21cfab8 5dbf6d4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import streamlit as st
from transformers import pipeline
sentiment_analysis = pipeline("sentiment-analysis", model = "siebert/sentiment-roberta-large-english")
st.title("Sentiment Analysis")
rev = st.text_input("Enter a review to analyze its sentiments")
analyze = st.button("Analyze")
if analyze:
result = sentiment_analysis(rev)[0]['label']
st.write(result)
|