Gregoryjr
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
st.title("Milestone #2")
|
4 |
-
|
5 |
classifier = pipeline("zero-shot-classification")
|
6 |
-
res = classifier(
|
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 |
|