101sec / app.py
Tyler102222's picture
Update app.py
a8e940c verified
Raw History Blame Contribute Delete
186 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline("Sentiment Analysis")
text = st.text_area("Enter some text! ")
if text:
out = pipe(text)
st.json(out)