Spaces:
Runtime error
Runtime error
Rob Caamano
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,6 @@ from transformers import (
|
|
7 |
|
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!",
|
14 |
"toxic": "WIP",
|
@@ -20,7 +18,7 @@ demo_options = {
|
|
20 |
}
|
21 |
|
22 |
selected_demo = st.selectbox("Demos", options=list(demo_options.keys()))
|
23 |
-
text = st.text_area("Input text", demo_options[selected_demo]
|
24 |
|
25 |
submit = False
|
26 |
model_name = ""
|
|
|
7 |
|
8 |
st.title("Classifier")
|
9 |
|
|
|
|
|
10 |
demo_options = {
|
11 |
"non-toxic": "Had a wonderful weekend at the park. Enjoyed the beautiful weather!",
|
12 |
"toxic": "WIP",
|
|
|
18 |
}
|
19 |
|
20 |
selected_demo = st.selectbox("Demos", options=list(demo_options.keys()))
|
21 |
+
text = st.text_area("Input text", demo_options[selected_demo], height=250)
|
22 |
|
23 |
submit = False
|
24 |
model_name = ""
|