Spaces:
Runtime error

File size: 223 Bytes
1495a7b
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit as st
from transformers import pipeline

# PIPE
pipe = pipeline("sentiment-analysis")

# TEXT
text = st.text_area("Enter a comment")

if text:
    # GET OUTPUT FROM AI
    out = pipe(text)

    st.json(out)