dammy commited on
Commit
986cfd0
·
1 Parent(s): b0a8958

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def upload_pdf(file):
100
 
101
  global collection
102
 
103
- file_name = btn.name
104
 
105
  loader = PDFMinerLoader(file_name)
106
  doc = loader.load()
 
100
 
101
  global collection
102
 
103
+ file_name = file.name
104
 
105
  loader = PDFMinerLoader(file_name)
106
  doc = loader.load()