Space2 / app.py
SAMBOOM's picture
Update app.py
3a40e03 verified
raw
history blame contribute delete
No virus
207 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('Enter some text! For sentiment analysis!')
if text:
out = pipe(text)
st.json(out)