com3dian commited on
Commit
b10c1c5
·
1 Parent(s): f30dea9

fix filename

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -26,10 +26,11 @@ if uploaded_file is not None:
26
  client.process("processFulltextDocument",
27
  "./uploads/",
28
  n=20)
29
- output_file = os.path.splitext(file_path)[0] + ".grobid.tei.xml"
 
30
 
31
  monkeyReader = reader.MonkeyReader('monkey')
32
- outline = monkeyReader.readOutline(output_file)
33
 
34
  for pre, fill, node in outline:
35
  st.write("%s%s" % (pre, node.name))
 
26
  client.process("processFulltextDocument",
27
  "./uploads/",
28
  n=20)
29
+
30
+ output_file_path = os.path.splitext(saved_file_path)[0] + ".grobid.tei.xml"
31
 
32
  monkeyReader = reader.MonkeyReader('monkey')
33
+ outline = monkeyReader.readOutline(output_file_path)
34
 
35
  for pre, fill, node in outline:
36
  st.write("%s%s" % (pre, node.name))