Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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/
|
| 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=
|
| 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 |
|