Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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)
|