ds5660_test / app.py
Lavinia's picture
Create app.py
c9eb6b8
raw
history blame contribute delete
199 Bytes
import streamlit as st
import transformers
from transformers import pipeline
pipe = pipeline("sentiment-analysis")
text = st.text_area("enter some text!")
if text:
out = pipe(text)
st.json(out)