Sameer commited on
Commit
04b5871
·
1 Parent(s): cadb3fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import streamlit as st
2
- import pickle
3
  from keras import Sequential
4
  from keras.layers import Dense,Embedding
5
  from keras.utils import pad_sequences
@@ -7,7 +6,7 @@ from keras.preprocessing.text import Tokenizer
7
  st.title("Spam-NonSpam Detector")
8
  Input=st.text_input("Input","Write here...")
9
  if st.button("Check"):
10
- st.text("Analyzing 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
 
1
  import streamlit as st
 
2
  from keras import Sequential
3
  from keras.layers import Dense,Embedding
4
  from keras.utils import pad_sequences
 
6
  st.title("Spam-NonSpam Detector")
7
  Input=st.text_input("Input","Write here...")
8
  if st.button("Check"):
9
+ st.text("Process may take upto a minute. Please be patient. Thank you!")
10
  df=pd.read_csv("mail_data.csv")
11
  df.loc[mail_data['Category'] == 'spam', 'Category'] = 0
12
  df.loc[mail_data['Category'] == 'ham', 'Category'] = 1