Spaces:
Sleeping
Sleeping
fix file upload
Browse files
app.py
CHANGED
@@ -19,12 +19,11 @@ if uploaded_file is not None:
|
|
19 |
bytes_data = uploaded_file.getvalue()
|
20 |
st.write(len(bytes_data), "bytes")
|
21 |
saved_file_path = save_uploaded_file(uploaded_file)
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
essay = monkeyReader.readEssay(saved_file_path)
|
|
|
19 |
bytes_data = uploaded_file.getvalue()
|
20 |
st.write(len(bytes_data), "bytes")
|
21 |
saved_file_path = save_uploaded_file(uploaded_file)
|
22 |
+
monkeyReader = reader.MonkeyReader('monkey')
|
23 |
+
outline = monkeyReader.readOutline(saved_file_path)
|
24 |
+
|
25 |
+
for pre, fill, node in outline:
|
26 |
+
st.write("%s%s" % (pre, node.name))
|
27 |
+
|
28 |
+
# read paper content
|
29 |
+
essay = monkeyReader.readEssay(saved_file_path)
|
|