File size: 193 Bytes
927023e
114374d
927023e
114374d
 
927023e
114374d
 
 
 
1
2
3
4
5
6
7
8
9
10
from transformers import pipeline
import streamlit as st

pipe = pipeline('sentiment-analysis')
text = st.text_area('Enter some text here!')

if text:
    out = pipe(text)
    st.json(out)