Spaces:
Runtime error
Runtime error
Commit
•
aa62588
1
Parent(s):
642e24f
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,9 @@ def main():
|
|
9 |
if uploaded_file is not None:
|
10 |
st.success("File uploaded successfully!")
|
11 |
# Process the file here
|
12 |
-
dataset = FileSystemDataset("email_dataset", hf_api=hf_api())
|
13 |
-
dataset['email files'].save(uploaded_file)
|
14 |
# st.write(uploaded_file.read())
|
15 |
-
|
16 |
-
|
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)))
|
|
|
9 |
if uploaded_file is not None:
|
10 |
st.success("File uploaded successfully!")
|
11 |
# Process the file here
|
|
|
|
|
12 |
# st.write(uploaded_file.read())
|
13 |
+
st.write(get_features(uploaded_file))
|
14 |
+
st.write(predict_content(text_feature(uploaded_file)))
|
15 |
# st.write(predict_html(html_tags_feature(uploaded_file)))
|
16 |
# st.write(predict_num(num_feature(uploaded_file)))
|
17 |
# st.write(predict_extra(extra_feature(uploaded_file)))
|