sentiments / app.py
ashutoshzade's picture
Update app.py
cb4392e
raw
history blame contribute delete
192 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('enter text to evaulate!')
if text:
out = pipe(text)
st.json(out)