Surendradjh commited on
Commit
bf41c0e
·
verified ·
1 Parent(s): 04b2c8e

Upload 4 files

Browse files
Text_converter.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f6bd0974dc5b236733297ac863917ddc0da369981d3f41cb9345f88bce306e7
3
+ size 97983
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ streamlit
2
+ pickel
spam_detection.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c0d017b23dd841db68a4b39a28b83d8b8738de3d447f6864fc596e18bc3bb27
3
+ size 136444
spam_streamlit.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pickle
3
+ import pandas as pd
4
+
5
+ st.title('E-Mail Spam Detection')
6
+ with open(r"spam_detection.pkl",'rb') as file:
7
+ model=pickle.load(file)
8
+
9
+ with open(r"Text_converter.pkl","rb") as file:
10
+ tr=pickle.load(file)
11
+
12
+ E_mail=st.text_input("Enter E-Mail Title")
13
+ if st.button('Predict'):
14
+ a=tr.transform([E_mail])
15
+ # st.write(a)
16
+ a=model.predict(a)
17
+ if a == 'ham':
18
+ st.write("It's not Spam message")
19
+ else:
20
+ st.write("It's a spam Message please avoid this Message ")