blog_generation / app.py
YasirAbdali's picture
Update app.py
3c97d9a verified
raw
history blame
172 Bytes
from transformers import pipeline
import streamlit as st
pipe=pipeline("sentiment-analysis")
text=st.text_area("Enter text")
if text:
out=pipe(text)
st.json(out)