karthickn's picture
Rename app1.py to app.py
792140e
raw
history blame contribute delete
217 Bytes
import streamlit as st
from transformers import pipeline
sentiment_pipeline = pipeline("sentiment-analysis")
text = st.text_area('enter some text!')
if text:
result = sentiment_pipeline(text)
st.json(result)