allenchienxxx commited on
Commit
94dbe99
·
1 Parent(s): 930ec72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,10 +12,11 @@ def main():
12
  if is_valid_filetype(uploaded_file):
13
  st.success("File uploaded successfully!")
14
  # Process the file here
15
- st.write(get_features(uploaded_file))
 
16
  # st.write(predict_content(text_feature(uploaded_file)))
17
  # st.write(predict_html(html_tags_feature(uploaded_file)))
18
- st.write(predict_num(num_feature(uploaded_file)))
19
  # st.write(predict_extra(extra_feature(uploaded_file)))
20
  else:
21
  st.error("Invalid file type. Please upload an EML or TXT file.")
 
12
  if is_valid_filetype(uploaded_file):
13
  st.success("File uploaded successfully!")
14
  # Process the file here
15
+ st.write(uploaded_file.read())
16
+ # st.write(get_features(uploaded_file))
17
  # st.write(predict_content(text_feature(uploaded_file)))
18
  # st.write(predict_html(html_tags_feature(uploaded_file)))
19
+ # st.write(predict_num(num_feature(uploaded_file)))
20
  # st.write(predict_extra(extra_feature(uploaded_file)))
21
  else:
22
  st.error("Invalid file type. Please upload an EML or TXT file.")