Spaces:
Sleeping
Sleeping
import streamlit as st | |
from transformers import pipeline | |
sentiment = pipeline('sentiment-analysis') | |
text = st.text_area('enter some text!') | |
if text: | |
out = sentiment(text) | |
st.json(out) | |