DU_week_5 / app.py
Piskovskytom's picture
Create app.py
86096f8
raw
history blame
181 Bytes
import streamlit as st
from transformers import pipeline
pipe = pipeline("text-classification")
text = st.text_area("enter some text!")
if text:
out = pipe(text)
st.json(out)