Gregoryjr commited on
Commit
1188df8
·
unverified ·
1 Parent(s): 12f0973

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  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
  classifier = pipeline("zero-shot-classification")
6
- res = classifier("possible lables", cata = ["offensive"],)
7
  print(res)
8
  st.button("submit")
9
 
 
1
  import streamlit as st
2
  from transformers import pipeline
3
  st.title("Milestone #2")
4
+ text = st.text_input("write a statement")
5
  classifier = pipeline("zero-shot-classification")
6
+ res = classifier(text, cata = ["offensive"],)
7
  print(res)
8
  st.button("submit")
9