sameerr007 commited on
Commit
58c7354
·
1 Parent(s): f48de4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ Input=st.text_input("Input the message below",)
9
  if st.button("Check"):
10
  st.text("Process may take upto a minute. Please be patient. Thank you!")
11
  df=pd.read_csv("mail_data.csv")
12
- df.loc[mail_data['Category'] == 'spam', 'Category'] = 0
13
- df.loc[mail_data['Category'] == 'ham', 'Category'] = 1
14
  X = df['Message']
15
  Y = df['Category']
16
  from keras.utils import pad_sequences
 
9
  if st.button("Check"):
10
  st.text("Process may take upto a minute. Please be patient. Thank you!")
11
  df=pd.read_csv("mail_data.csv")
12
+ df.loc[df['Category'] == 'spam', 'Category'] = 0
13
+ df.loc[df['Category'] == 'ham', 'Category'] = 1
14
  X = df['Message']
15
  Y = df['Category']
16
  from keras.utils import pad_sequences