Test001 / app.py
alokjadhav27's picture
Update app.py
7123eaf verified
raw
history blame contribute delete
210 Bytes
#!pip install transformers
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('add text')
if text:
out = pipe(text)
st.json(out)