File size: 232 Bytes
5fa7fa6
 
 
 
b81fd3e
 
1e4c856
5fa7fa6
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import streamlit as st
from transformers import pipeline

pipe = pipeline('sentiment-analysis')

st.title("Sentiment Analysis")
text = st.text_area('Enter some text in the box below!')

if text:
    out = pipe(text)
    st.json(out)