Bootcamp_Asg / app.py
Suhaib-27's picture
Update app.py
f6bcc4d verified
raw
history blame
200 Bytes
import streamlit as st
from transformers import pipeline
classifier = pipeline("sentiment-analysis")
text = st.text_area("Enter your text")
if text :
out = classifier(text)
st.json(out)