com3dian commited on
Commit
fda22ce
·
1 Parent(s): 9ec3b13

fix file upload

Browse files
Files changed (1) hide show
  1. app.py +8 -9
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
- monkeyReader = reader.MonkeyReader('monkey')
24
- outline = monkeyReader.readOutline(saved_file_path)
25
-
26
- for pre, fill, node in outline:
27
- st.write("%s%s" % (pre, node.name))
28
-
29
- # read paper content
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)