alexkueck commited on
Commit
a6b7a2f
·
verified ·
1 Parent(s): 5f1bc60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -582,7 +582,7 @@ with gr.Blocks(css=customCSS, theme=themeAlex) as demo:
582
 
583
  with gr.Tab("Datei hochladen"):
584
  upload_pdf_files = gr.Files(label="PDF- oder Word-Dateien in Zwischenablage", file_count="multiple")
585
- output_text = gr.Alert() #gr.Textbox(label="Status")
586
  renew_button = gr.Button("Dateien hochladen und System aktualisieren", elem_id="renew_button")
587
  file_list = gr.HTML(elem_id="file_list", show_label=False)
588
 
@@ -647,7 +647,7 @@ with gr.Blocks(css=customCSS, theme=themeAlex) as demo:
647
  renew_button.click(fn=upload_pdf, inputs=upload_pdf_files, outputs=[output_text, file_list]).then(
648
  fn=update_vectorstore, inputs=None, outputs=output_text).then(
649
  fn=reset_file_input, inputs=None, outputs=upload_pdf_files).then(
650
- fn=lambda: "System aktualisiert", inputs=None, outputs=output_text
651
  )
652
  demo.load(display_files, outputs=file_list)
653
 
 
582
 
583
  with gr.Tab("Datei hochladen"):
584
  upload_pdf_files = gr.Files(label="PDF- oder Word-Dateien in Zwischenablage", file_count="multiple")
585
+ output_text = gr.Textbox(label="Status")
586
  renew_button = gr.Button("Dateien hochladen und System aktualisieren", elem_id="renew_button")
587
  file_list = gr.HTML(elem_id="file_list", show_label=False)
588
 
 
647
  renew_button.click(fn=upload_pdf, inputs=upload_pdf_files, outputs=[output_text, file_list]).then(
648
  fn=update_vectorstore, inputs=None, outputs=output_text).then(
649
  fn=reset_file_input, inputs=None, outputs=upload_pdf_files).then(
650
+ fn=lambda: gr.Popup("Prozess erfolgreich abgeschlossen!", title="Fertig", type="success"), inputs=None, outputs=gr.Popup()
651
  )
652
  demo.load(display_files, outputs=file_list)
653