nppmatt commited on
Commit
dd26b28
1 Parent(s): 50ad213

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -8,6 +8,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
8
  option = st.selectbox("Select a toxicity analysis model:", ("RoBERTa", "DistilBERT", "XLM-RoBERTa"))
9
  defaultTxt = "I hate you cancerous insects so much"
10
  txt = st.text_area("Text to analyze", defaultTxt)
 
11
 
12
  # Load tokenizer and model weights, try to default to RoBERTa.
13
  # Huggingface does not support Python 3.10 match statements and I'm too lazy to implement an equivalent.
 
8
  option = st.selectbox("Select a toxicity analysis model:", ("RoBERTa", "DistilBERT", "XLM-RoBERTa"))
9
  defaultTxt = "I hate you cancerous insects so much"
10
  txt = st.text_area("Text to analyze", defaultTxt)
11
+ st.button("Submit Text")
12
 
13
  # Load tokenizer and model weights, try to default to RoBERTa.
14
  # Huggingface does not support Python 3.10 match statements and I'm too lazy to implement an equivalent.