Gregoryjr commited on
Commit
e862b67
1 Parent(s): b882e97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 #2 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")
7
  text = "I Am going to attack you"
8
  st.write(text)
9
 
10
- options = ["zero-shot-classification", "cardiffnlp/twitter-roberta-base-offensive", "Greys/milestonemodel"]
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")