Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|