karthickn's picture
Update app.py
8edd374
raw
history blame
217 Bytes
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)