demo-app / app.py
utkarsh2299's picture
Update app.py
d366fc9
raw
history blame contribute delete
202 Bytes
import streamlit as st
from transformers import pipeline
sentiment_pipeline = pipeline("sentiment-analysis")
text=st.text_area("Enter text :")
if text:
out=sentiment_pipeline(text)
st.json(out)