Gregoryjr
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,12 +2,12 @@ import streamlit as st
|
|
| 2 |
from transformers import pipeline
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 4 |
|
| 5 |
-
st.title("Milestone #
|
| 6 |
-
st.write("in this basic demo you can select a model to judge whether or not the text below is offensive")
|
| 7 |
text = "I Am going to attack you"
|
| 8 |
st.write(text)
|
| 9 |
|
| 10 |
-
options = ["
|
| 11 |
model = st.selectbox("Select a pre-trained model", options)
|
| 12 |
|
| 13 |
con = st.button("Submit")
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 4 |
|
| 5 |
+
st.title("Milestone #3 offensive statement prediction with pre-trained models")
|
| 6 |
+
st.write("in this basic demo you can select a model to judge whether or not the text below is offensive and how it's offensive. the options are[toxic, severe_toxic, obscene, threat, insult, identity_hate]")
|
| 7 |
text = "I Am going to attack you"
|
| 8 |
st.write(text)
|
| 9 |
|
| 10 |
+
options = ["Greys/milestonemodel"]
|
| 11 |
model = st.selectbox("Select a pre-trained model", options)
|
| 12 |
|
| 13 |
con = st.button("Submit")
|