test / app.py
Nuthanon's picture
Update app.py
aaa71ca verified
raw
history blame
217 Bytes
import streamlit as st
from transformers import pipeline
st.title("Test")
test_pipeline = pipeline("sentiment-analysis")
text = st.text_area("Enter some text")
if text:
out = test_pipeline(text)
st.json(out)