Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,6 @@ repo.git_pull() # Pull the latest changes (if any)
|
|
26 |
# Step 2: Load the PDF File
|
27 |
pdf_file_path = "Private_Book/Glossar_HELP_DESK_combi.pdf" # Replace with your PDF file path
|
28 |
|
29 |
-
# Sidebar content
|
30 |
with st.sidebar:
|
31 |
st.title('BinDoc GmbH')
|
32 |
st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
|
@@ -41,24 +40,24 @@ with st.sidebar:
|
|
41 |
Ask me if you forgot your password or want to know more about topics related to the platform.
|
42 |
""", unsafe_allow_html=True)
|
43 |
|
44 |
-
|
45 |
|
46 |
-
glossary_option = st.selectbox(
|
47 |
-
|
48 |
-
|
49 |
-
)
|
50 |
|
51 |
-
whitepaper_option = st.selectbox(
|
52 |
-
|
53 |
-
|
54 |
-
)
|
55 |
|
56 |
-
st.write('Made with ❤️ by BinDoc GmbH')
|
57 |
|
58 |
-
|
59 |
api_key = os.getenv("OPENAI_API_KEY")
|
60 |
# Retrieve the API key from st.secrets
|
61 |
|
|
|
62 |
def load_pdf(file_path):
|
63 |
pdf_reader = PdfReader(file_path)
|
64 |
text = ""
|
|
|
26 |
# Step 2: Load the PDF File
|
27 |
pdf_file_path = "Private_Book/Glossar_HELP_DESK_combi.pdf" # Replace with your PDF file path
|
28 |
|
|
|
29 |
with st.sidebar:
|
30 |
st.title('BinDoc GmbH')
|
31 |
st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
|
|
|
40 |
Ask me if you forgot your password or want to know more about topics related to the platform.
|
41 |
""", unsafe_allow_html=True)
|
42 |
|
43 |
+
add_vertical_space(3) # Adjust as per the desired spacing
|
44 |
|
45 |
+
glossary_option = st.selectbox(
|
46 |
+
'Want to see more Glossary Topics to ask about?',
|
47 |
+
('Basisfallwert', 'Cash Flow', 'Arzneimittelgesetz (AMG)')
|
48 |
+
)
|
49 |
|
50 |
+
whitepaper_option = st.selectbox(
|
51 |
+
'Did you know we\'ve authored some really insightful and helpful whitepapers as well?',
|
52 |
+
('Title1', 'Title2', 'Title3')
|
53 |
+
)
|
54 |
|
55 |
+
st.write('Made with ❤️ by BinDoc GmbH')
|
56 |
|
|
|
57 |
api_key = os.getenv("OPENAI_API_KEY")
|
58 |
# Retrieve the API key from st.secrets
|
59 |
|
60 |
+
|
61 |
def load_pdf(file_path):
|
62 |
pdf_reader = PdfReader(file_path)
|
63 |
text = ""
|