drfahlan's picture
Create app.py
7c16f82 verified
raw
history blame
No virus
173 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = st.text_area('i love you')
if text:
out = pipe(text)
st.json(out)