File size: 188 Bytes
ae35b7e
4e30f44
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from transformers import pipeline
import streamlit as st 

pipe = pipeline('sentiment analysis')
input_text = st.text_input('Enter some text')

if input_text:
    st.json(pipe(input_text))