Anne31415 commited on
Commit
af8c165
·
verified ·
1 Parent(s): 238d307

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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/KH_Reform_230124.pdf" # Replace with your PDF file path
46
 
47
  pdf_path2 = "Private_Book/Buch_23012024.pdf"
48
 
@@ -205,7 +205,7 @@ def page1():
205
  st.error("File not found. Please check the file path.")
206
  return
207
 
208
- VectorStore = load_vector_store(pdf_path, "KH_Reform_2301", force_reload=False)
209
 
210
  display_chat_history(st.session_state['chat_history_page1'])
211
 
 
42
  repo.git_pull() # Pull the latest changes (if any)
43
 
44
  # Step 2: Load the PDF File
45
+ pdf_path = "Private_Book/KH_Reform230124.pdf" # Replace with your PDF file path
46
 
47
  pdf_path2 = "Private_Book/Buch_23012024.pdf"
48
 
 
205
  st.error("File not found. Please check the file path.")
206
  return
207
 
208
+ VectorStore = load_vector_store(pdf_path, "KH_Reform_2301", force_reload=True)
209
 
210
  display_chat_history(st.session_state['chat_history_page1'])
211