dammy commited on
Commit
2aaf722
·
1 Parent(s): 20570da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -83,9 +83,9 @@ def upload_pdf(file):
83
  # Save the uploaded file
84
  file_name = file.name
85
 
86
- pdf_filename = os.path.basename(file_name)
87
 
88
- messsage = load_document(pdf_filename)
89
  return messsage
90
  else:
91
  return "No file uploaded."
 
83
  # Save the uploaded file
84
  file_name = file.name
85
 
86
+ # file_name = os.path.basename(file_name)
87
 
88
+ messsage = load_document(file_name)
89
  return messsage
90
  else:
91
  return "No file uploaded."