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