mayurmistry's picture
Sentiment analysis
0c3d163
raw
history blame
199 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('enter some text')
st.title("Hot Dog or Cold Dog")
if text:
out = pipe(text)