Pontonkid commited on
Commit
ac15c13
1 Parent(s): c5d6e9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("Moderate"):
14
  # Perform toxicity prediction
15
- with st.spinner("Analyzing..."):
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