milstone2 / app.py
Gregoryjr
Update app.py
12f0973 unverified
raw
history blame
286 Bytes
import streamlit as st
from transformers import pipeline
st.title("Milestone #2")
model_name = st.text_input("which model do you want to use?")
classifier = pipeline("zero-shot-classification")
res = classifier("possible lables", cata = ["offensive"],)
print(res)
st.button("submit")