Cachoups commited on
Commit
8beb8af
·
verified ·
1 Parent(s): 89d281c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def upload_file_and_update_dropdown(file):
50
  # Save the file to the upload directory
51
  file_path = os.path.join(PDF_FOLDER, file.name)
52
  with open(file_path, "wb") as f:
53
- f.write(file.data)
54
 
55
  # Get the updated list of files
56
  files = os.listdir(PDF_FOLDER)
 
50
  # Save the file to the upload directory
51
  file_path = os.path.join(PDF_FOLDER, file.name)
52
  with open(file_path, "wb") as f:
53
+ f.write(file)
54
 
55
  # Get the updated list of files
56
  files = os.listdir(PDF_FOLDER)