Code8 / app.py
Ankush05's picture
this
d37d096
raw
history blame contribute delete
270 Bytes
import streamlit as st
from transformers import pipeline
classifier = pipeline(model="distilbert-base-uncased-finetuned-sst-2-english")
if uinput := st.chat_input("Classify: "):
ans = classifier(uinput)
with st.chat_message("User"):
st.write(ans)