alexkueck commited on
Commit
611e2e1
·
verified ·
1 Parent(s): ed036b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -433,8 +433,6 @@ def show_status():
433
  def show_text_status():
434
  return gr.HTML(value='<div style="text-align: center; color: red;">System erfolgreich aktualisiert!</div>', label="Status", visible=True)
435
 
436
- def toggle_visibility(tab):
437
- return gr.update(visible=False)
438
 
439
  ########################################
440
  # Bot- test gegen schädliche Bots die die Anwendung testen...
@@ -665,8 +663,6 @@ with gr.Blocks(css=customCSS, theme=themeAlex) as demo:
665
  renew_button.click(fn=upload_pdf, inputs=upload_pdf_files, outputs=[output_text, file_list]).then(
666
  fn=update_vectorstore, inputs=None, outputs=output_text).then(
667
  fn=reset_file_input, inputs=None, outputs=upload_pdf_files).then(fn=show_text_status, inputs=None, outputs=output_text) #.then(fn=hide_status, inputs=None, outputs=output_text, show_progress="hidden")
668
- # Hide on refresh or tab switch
669
- tab2.select(fn=toggle_visibility, inputs=tab1, outputs=output_text)
670
  demo.load(display_files, outputs=file_list)
671
 
672
  demo.title = "KKG-Suche"
 
433
  def show_text_status():
434
  return gr.HTML(value='<div style="text-align: center; color: red;">System erfolgreich aktualisiert!</div>', label="Status", visible=True)
435
 
 
 
436
 
437
  ########################################
438
  # Bot- test gegen schädliche Bots die die Anwendung testen...
 
663
  renew_button.click(fn=upload_pdf, inputs=upload_pdf_files, outputs=[output_text, file_list]).then(
664
  fn=update_vectorstore, inputs=None, outputs=output_text).then(
665
  fn=reset_file_input, inputs=None, outputs=upload_pdf_files).then(fn=show_text_status, inputs=None, outputs=output_text) #.then(fn=hide_status, inputs=None, outputs=output_text, show_progress="hidden")
 
 
666
  demo.load(display_files, outputs=file_list)
667
 
668
  demo.title = "KKG-Suche"