Cachoups commited on
Commit
47ba617
·
verified ·
1 Parent(s): f45244b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def fin_ext_bis(text):
49
  def upload_file_and_update_dropdown(file):
50
  if file is not None:
51
  # Save the file to the upload directory
52
- file_path = os.path.join(PDF_FOLDER, os.path.basename(fileobj))
53
  shutil.copyfile(file.name, file_path)
54
  # Get the updated list of files
55
  files = os.listdir(PDF_FOLDER)
 
49
  def upload_file_and_update_dropdown(file):
50
  if file is not None:
51
  # Save the file to the upload directory
52
+ file_path = os.path.join(PDF_FOLDER, os.path.basename(file))
53
  shutil.copyfile(file.name, file_path)
54
  # Get the updated list of files
55
  files = os.listdir(PDF_FOLDER)