File size: 188 Bytes
7ca33fc
 
 
 
c657ba4
7ca33fc
 
 
1e0e32c
1
2
3
4
5
6
7
8
9
import streamlit as slt 
from transformers import pipeline

pipe = pipeline('sentiment-analysis')
text = slt.text_area('Give me some text')

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