Gregoryjr
commited on
Update app.py
Browse files
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 |
|