Gregoryjr commited on
Commit
a363694
·
unverified ·
1 Parent(s): 68826e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -2,5 +2,8 @@ import streamlit as st
2
  from transformers import pipeline
3
  st.title("Milestone #2")
4
  model_name = st.text_input("which model do you want to use?")
 
 
 
5
  st.button("submit")
6
 
 
2
  from transformers import pipeline
3
  st.title("Milestone #2")
4
  model_name = st.text_input("which model do you want to use?")
5
+ classifier = pipeline("zero-shot-classification")
6
+ res = classifier("possible lables", cata = [offensive],)
7
+ print(res)
8
  st.button("submit")
9