com3dian commited on
Commit
723c594
·
1 Parent(s): 0726521

fix filename

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -29,10 +29,9 @@ if uploaded_file is not None:
29
  "./uploads/",
30
  output="./grobidoutputs/",
31
  n=20)
32
-
33
  directory = "$HOME/app"
34
-
35
- pattern = os.path.splitext(file_name)[0] + "grobid.tei.xml"
36
  matching_files = glob.glob(f"{directory}/**/{pattern}", recursive=True)
37
 
38
  if matching_files:
 
29
  "./uploads/",
30
  output="./grobidoutputs/",
31
  n=20)
32
+
33
  directory = "$HOME/app"
34
+ pattern = os.path.splitext(uploaded_file.name)[0] + "grobid.tei.xml"
 
35
  matching_files = glob.glob(f"{directory}/**/{pattern}", recursive=True)
36
 
37
  if matching_files: