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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.Dropdown.update(choices=files), gr.Dropdown.update(choices=files)
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