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/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, "
|
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", ["
|
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 == "
|
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()
|