Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def upload_file_and_update_dropdown(file):
|
|
| 53 |
shutil.copyfile(file.name, file_path)
|
| 54 |
# Get the updated list of files
|
| 55 |
files = os.listdir(PDF_FOLDER)
|
| 56 |
-
return gr.
|
| 57 |
|
| 58 |
return gr.Dropdown.update(choices=[]),gr.Dropdown.update(choices=[])
|
| 59 |
|
|
|
|
| 53 |
shutil.copyfile(file.name, file_path)
|
| 54 |
# Get the updated list of files
|
| 55 |
files = os.listdir(PDF_FOLDER)
|
| 56 |
+
return gr.update(choices=files), gr.Dropdown.update(choices=files)
|
| 57 |
|
| 58 |
return gr.Dropdown.update(choices=[]),gr.Dropdown.update(choices=[])
|
| 59 |
|