Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
57 |
|
58 |
-
return gr.
|
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:
|