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