Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,9 @@ input_text = st.text_area('Enter a sentence')
|
|
10 |
# Check if there is input text
|
11 |
if input_text:
|
12 |
# Add a button to trigger moderation
|
13 |
-
if st.button("
|
14 |
# Perform toxicity prediction
|
15 |
-
with st.spinner("
|
16 |
results = Detoxify('original').predict(input_text)
|
17 |
|
18 |
# Display the results in columns
|
|
|
10 |
# Check if there is input text
|
11 |
if input_text:
|
12 |
# Add a button to trigger moderation
|
13 |
+
if st.button("Rate Toxicity!"):
|
14 |
# Perform toxicity prediction
|
15 |
+
with st.spinner("Crunching numbers..."):
|
16 |
results = Detoxify('original').predict(input_text)
|
17 |
|
18 |
# Display the results in columns
|