demo2 / app.py
rxsalad
v2
d7ed77c
raw
history blame contribute delete
No virus
299 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline("sentiment-analysis")
st.write( "---------------------------")
st.write( "--------------------------- demo2: Sentiment Analysis")
text = st.text_area("Please enter some text")
if text:
out = pipe(text)
st.json(out)