Anne31415 commited on
Commit
1ac9586
·
verified ·
1 Parent(s): d5fc916

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -42,7 +42,7 @@ repo = Repository(
42
  repo.git_pull() # Pull the latest changes (if any)
43
 
44
  # Step 2: Load the PDF File
45
- pdf_path = "Private_Book/09012024_Kombi_2.pdf" # Replace with your PDF file path
46
 
47
  pdf_path2 = "Private_Book/KH_Reform_230124.pdf"
48
 
@@ -200,7 +200,7 @@ def page1():
200
  st.error("File not found. Please check the file path.")
201
  return
202
 
203
- VectorStore = load_vector_store(pdf_path, "vector_store_page1", force_reload=False)
204
 
205
  display_chat_history(st.session_state['chat_history_page1'])
206
 
@@ -512,12 +512,12 @@ def main():
512
  st.title('BinDoc GmbH')
513
  st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
514
  add_vertical_space(1)
515
- page = st.sidebar.selectbox("Choose a page", ["Document Analysis Bot", "KH_Reform", "Kennzahlenbuch 100 Kennzahlen"])
516
  add_vertical_space(1)
517
  st.write('Made with ❤️ by BinDoc GmbH')
518
 
519
  # Main area content based on page selection
520
- if page == "Document Analysis Bot":
521
  page1()
522
  elif page == "KH_Reform":
523
  page2()
 
42
  repo.git_pull() # Pull the latest changes (if any)
43
 
44
  # Step 2: Load the PDF File
45
+ pdf_path = "Private_Book/Kosten_Grunddaten_KH_230124.pdf" # Replace with your PDF file path
46
 
47
  pdf_path2 = "Private_Book/KH_Reform_230124.pdf"
48
 
 
200
  st.error("File not found. Please check the file path.")
201
  return
202
 
203
+ VectorStore = load_vector_store(pdf_path, "Kosten_GD_KH_230124", force_reload=False)
204
 
205
  display_chat_history(st.session_state['chat_history_page1'])
206
 
 
512
  st.title('BinDoc GmbH')
513
  st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
514
  add_vertical_space(1)
515
+ page = st.sidebar.selectbox("Choose a page", ["Kosten- und Strukturdaten der Krankenhäuser", "KH_Reform", "Kennzahlenbuch 100 Kennzahlen"])
516
  add_vertical_space(1)
517
  st.write('Made with ❤️ by BinDoc GmbH')
518
 
519
  # Main area content based on page selection
520
+ if page == "Kosten- und Strukturdaten der Krankenhäuser":
521
  page1()
522
  elif page == "KH_Reform":
523
  page2()