demo-app / app.py
Compete2's picture
Update app.py
ae35b7e verified
raw
history blame
188 Bytes
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))