Rob Caamano commited on
Commit
2e8fb9b
·
unverified ·
1 Parent(s): d0d0af6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -8,7 +8,6 @@ from transformers import (
8
  st.title("Classifier")
9
 
10
  demo = """Your words are like poison. They seep into my mind and make me feel worthless."""
11
- text = st.text_area("Input text", demo, height=250)
12
 
13
  demo_options = {
14
  "non-toxic": "Had a wonderful weekend at the park. Enjoyed the beautiful weather!",
@@ -21,7 +20,7 @@ demo_options = {
21
  }
22
 
23
  selected_demo = st.selectbox("Demos", options=list(demo_options.keys()))
24
- text = st.text_area("Input text", demo_options[selected_demo], height=250)
25
 
26
  submit = False
27
  model_name = ""
 
8
  st.title("Classifier")
9
 
10
  demo = """Your words are like poison. They seep into my mind and make me feel worthless."""
 
11
 
12
  demo_options = {
13
  "non-toxic": "Had a wonderful weekend at the park. Enjoyed the beautiful weather!",
 
20
  }
21
 
22
  selected_demo = st.selectbox("Demos", options=list(demo_options.keys()))
23
+ text = st.text_area("Input text", demo_options[selected_demo] if selected_demo else demo, height=250)
24
 
25
  submit = False
26
  model_name = ""