demo-app / app.py
coolkrishds's picture
Update app.py
37750d7
raw
history blame contribute delete
189 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('Enter some content !')
if text:
out = pipe(text)
st.json(out)