Spaces:
Runtime error

test / app.py
Kurler's picture
Add app file
1495a7b
Raw History Blame Contribute Delete
223 Bytes
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)