karthickn's picture
Create app.py
f01e43b
raw
history blame
216 Bytes
import streamlit as st
from transformers import pipline
sentiment_pipeline = pipeline("sentiment-analysis")
text = st.text_area('enter some text!')
if text:
result = sentiment_pipeline(text)
st.json(result)