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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,9 +53,9 @@ 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.update(choices=files), gr.Dropdown.update(choices=files)
57
 
58
- return gr.Dropdown.update(choices=[]),gr.Dropdown.update(choices=[])
59
 
60
  def extract_and_paragraph(pdf1, pdf2, paragraph):
61
  if not pdf1 or not pdf2:
 
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.update(choices=files)
57
 
58
+ return gr.update(choices=[]),gr.Dropdown.update(choices=[])
59
 
60
  def extract_and_paragraph(pdf1, pdf2, paragraph):
61
  if not pdf1 or not pdf2: