Update app.py
Browse files
app.py
CHANGED
@@ -389,7 +389,7 @@ def upload_pdf(files):
|
|
389 |
logging.error(f"Error preparing upload for file {file.name}: {e}")
|
390 |
|
391 |
# Warten, bis alle Uploads abgeschlossen sind
|
392 |
-
for future in
|
393 |
try:
|
394 |
future.result()
|
395 |
except Exception as e:
|
@@ -618,7 +618,7 @@ with gr.Blocks(css=customCSS, theme=themeAlex) as demo:
|
|
618 |
with gr.Tab("Datei hochladen"):
|
619 |
upload_pdf_files = gr.Files(label="PDF- oder Word-Dateien in Zwischenablage", file_count="multiple")
|
620 |
output_text = gr.Textbox(label="Status")
|
621 |
-
renew_button = gr.Button("Dateien hochladen", elem_id="renew_button")
|
622 |
file_list = gr.HTML(elem_id="file_list", show_label=False)
|
623 |
|
624 |
|
|
|
389 |
logging.error(f"Error preparing upload for file {file.name}: {e}")
|
390 |
|
391 |
# Warten, bis alle Uploads abgeschlossen sind
|
392 |
+
for future in futures:
|
393 |
try:
|
394 |
future.result()
|
395 |
except Exception as e:
|
|
|
618 |
with gr.Tab("Datei hochladen"):
|
619 |
upload_pdf_files = gr.Files(label="PDF- oder Word-Dateien in Zwischenablage", file_count="multiple")
|
620 |
output_text = gr.Textbox(label="Status")
|
621 |
+
renew_button = gr.Button("Dateien hochladen und System aktualisieren", elem_id="renew_button")
|
622 |
file_list = gr.HTML(elem_id="file_list", show_label=False)
|
623 |
|
624 |
|