File size: 695 Bytes
01cbf36
4a604a4
 
 
 
 
 
 
c94e414
 
76dd553
 
 
c94e414
 
 
01cbf36
9bbe331
01cbf36
4a604a4
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from analze import *
import streamlit as st


def main():
    st.title("Phishing Email Filtering Service")
    uploaded_file = st.file_uploader("Upload a file", type=['eml', 'txt'])
    if uploaded_file is not None:
        st.success("File uploaded successfully!")
        # Process the file here
        # st.write(uploaded_file.read())
        st.write(get_features(uploaded_file))
        st.write(predict_content(text_feature(uploaded_file)))
        # st.write(predict_html(html_tags_feature(uploaded_file)))               
        # st.write(predict_num(num_feature(uploaded_file)))
        # st.write(predict_extra(extra_feature(uploaded_file)))


if __name__ == '__main__':
    main()