Spaces:
Runtime error
Runtime error
allenchienxxx
commited on
Commit
•
7aed46a
1
Parent(s):
8db5c94
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def main():
|
|
12 |
if is_valid_filetype(uploaded_file):
|
13 |
st.success("File uploaded successfully!")
|
14 |
# Process the file here
|
15 |
-
st.write(
|
16 |
else:
|
17 |
st.error("Invalid file type. Please upload an EML or TXT file.")
|
18 |
|
@@ -20,7 +20,6 @@ def main():
|
|
20 |
def upload_file():
|
21 |
filepath = 'email files/' + file.filename
|
22 |
return render_template('home.html',
|
23 |
-
content=check_file_type(file),
|
24 |
features = get_features(filepath),
|
25 |
pre_content=predict_content(text_feature(filepath)),
|
26 |
pre_tag=predict_html(html_tags_feature(filepath)),
|
|
|
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 |
else:
|
17 |
st.error("Invalid file type. Please upload an EML or TXT file.")
|
18 |
|
|
|
20 |
def upload_file():
|
21 |
filepath = 'email files/' + file.filename
|
22 |
return render_template('home.html',
|
|
|
23 |
features = get_features(filepath),
|
24 |
pre_content=predict_content(text_feature(filepath)),
|
25 |
pre_tag=predict_html(html_tags_feature(filepath)),
|