alexkueck commited on
Commit
0af5330
·
verified ·
1 Parent(s): a53c25e

Update app.py

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