shivansh-ka commited on
Commit
e62eed9
·
1 Parent(s): 2a7da71

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +2 -2
app2.py CHANGED
@@ -30,7 +30,7 @@ def batch_predict(data):
30
  return preds.to_csv(index=False).encode('utf-8')
31
 
32
  st.title('Toxic Comment Classifier')
33
- st.write("This application will help to classify any comment or text in any language into 'TOXIC' and 'NON-TOXIC'")
34
  tab1, tab2 = st.tabs(["Single Value Prediciton","Batch Prediction"])
35
  #menu = ["Single Value Prediciton","Batch Prediction"]
36
  #choice = st.sidebar.radio("Menu",menu)
@@ -38,7 +38,7 @@ tab1, tab2 = st.tabs(["Single Value Prediciton","Batch Prediction"])
38
  #if choice=="Single Value Prediciton":
39
  with tab1:
40
  st.subheader("Prediction")
41
- with st.form("comment_form"):
42
  comment = st.text_area(label="Enter your comment")
43
  button = st.form_submit_button(label="Submit")
44
  if button:
 
30
  return preds.to_csv(index=False).encode('utf-8')
31
 
32
  st.title('Toxic Comment Classifier')
33
+ st.write("This application will help to classify any comment or text in any language into 'TOXIC' or 'NON-TOXIC'")
34
  tab1, tab2 = st.tabs(["Single Value Prediciton","Batch Prediction"])
35
  #menu = ["Single Value Prediciton","Batch Prediction"]
36
  #choice = st.sidebar.radio("Menu",menu)
 
38
  #if choice=="Single Value Prediciton":
39
  with tab1:
40
  st.subheader("Prediction")
41
+ with st.form("comment_form", clear_on_submit=True):
42
  comment = st.text_area(label="Enter your comment")
43
  button = st.form_submit_button(label="Submit")
44
  if button: