nlp_try / app.py
SalmanML's picture
Update app.py
d169bde verified
raw
history blame contribute delete
275 Bytes
from transformers import pipeline
import streamlit as st
st.header("Sentiment analysis app using transformers")
sentiment_task = pipeline("sentiment-analysis")
text=st.text_area("enter text here to get the sentiment")
if text:
res=sentiment_task(text)
st.json(res)