Rohit Diwane
Update app.py
7306dc6
raw
history blame
196 Bytes
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)