tsambo's picture
Update app.py
b81fd3e
raw
history blame
232 Bytes
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)