Naruto9's picture
Create app.py
c1a2f4d verified
raw
history blame
185 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiemnt-analysis')
text = st.text_area('enter some text!')
if text:
out = pipe(text)
st.json(out)