Update app.py
Browse files
app.py
CHANGED
|
@@ -448,14 +448,6 @@ def upload_pdf(files):
|
|
| 448 |
"""
|
| 449 |
|
| 450 |
|
| 451 |
-
#Vektorstore erst auf ButtonKlick erneuern, vorher eventuell mehrere Dateien hochladen
|
| 452 |
-
def renew_vectorstore():
|
| 453 |
-
create_vectorstore()
|
| 454 |
-
return "Vektorstore wurde erfolgreich erneuert."
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
|
| 460 |
########################################
|
| 461 |
# Bot- test gegen schädliche Bots die die Anwendung testen...
|
|
@@ -702,7 +694,7 @@ with gr.Blocks(css=customCSS, theme=themeAlex) as demo:
|
|
| 702 |
############################################
|
| 703 |
#2ter Tab
|
| 704 |
renew_button.click(fn=upload_pdf, inputs=upload_pdf_files, outputs=[output_text, file_list])
|
| 705 |
-
|
| 706 |
|
| 707 |
demo.title = "KKG-ChatBot"
|
| 708 |
demo.queue(default_concurrency_limit=15).launch(debug=True)
|
|
|
|
| 448 |
"""
|
| 449 |
|
| 450 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 451 |
|
| 452 |
########################################
|
| 453 |
# Bot- test gegen schädliche Bots die die Anwendung testen...
|
|
|
|
| 694 |
############################################
|
| 695 |
#2ter Tab
|
| 696 |
renew_button.click(fn=upload_pdf, inputs=upload_pdf_files, outputs=[output_text, file_list])
|
| 697 |
+
demo.load(display_files, outputs=file_list)
|
| 698 |
|
| 699 |
demo.title = "KKG-ChatBot"
|
| 700 |
demo.queue(default_concurrency_limit=15).launch(debug=True)
|