alexkueck commited on
Commit
c095b24
·
verified ·
1 Parent(s): e0aefc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -599,10 +599,10 @@ with gr.Blocks(css=customCSS, theme=themeAlex) as demo:
599
 
600
  # Automatisches Ausführen der Upload-Funktion, wenn eine Datei hochgeladen wird
601
  #upload_pdf_file.change(fn=upload_pdf, inputs=upload_pdf_file, outputs=output_text)
602
- upload_pdf_files.change(fn=upload_pdf, inputs=upload_pdf_files, outputs=[output_text, file_list], postprocess=display_files)
603
  renew_button.click(fn=renew_vectorstore, outputs=output_text)
604
  #gr.HTML(update=display_files, elem_id="file_list", show_label=False)
605
- #demo.load(display_files, outputs=file_list)
606
 
607
 
608
  """
 
599
 
600
  # Automatisches Ausführen der Upload-Funktion, wenn eine Datei hochgeladen wird
601
  #upload_pdf_file.change(fn=upload_pdf, inputs=upload_pdf_file, outputs=output_text)
602
+ upload_pdf_files.change(fn=upload_pdf, inputs=upload_pdf_files, outputs=[output_text, file_list]) #, postprocess=display_files)
603
  renew_button.click(fn=renew_vectorstore, outputs=output_text)
604
  #gr.HTML(update=display_files, elem_id="file_list", show_label=False)
605
+ demo.load(display_files, outputs=file_list)
606
 
607
 
608
  """