Update app.py
Browse files
app.py
CHANGED
|
@@ -26,20 +26,23 @@ 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 |
-
|
| 30 |
-
|
| 31 |
-
# Sidebar contents
|
| 32 |
# Sidebar content
|
| 33 |
with st.sidebar:
|
| 34 |
st.title('BinDoc GmbH')
|
| 35 |
st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
|
| 36 |
-
add_vertical_space(3)
|
| 37 |
-
st.write('Made with ❤️ by BinDoc GmbH')
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
|
| 41 |
-
add_vertical_space(3) # Add more vertical space between text blocks
|
| 42 |
st.write('Made with ❤️ by BinDoc GmbH')
|
|
|
|
| 43 |
|
| 44 |
api_key = os.getenv("OPENAI_API_KEY")
|
| 45 |
# Retrieve the API key from st.secrets
|
|
@@ -78,15 +81,6 @@ def load_chatbot():
|
|
| 78 |
def main():
|
| 79 |
# Main content
|
| 80 |
st.title("Welcome to BinDocs ChatBot! 🤖")
|
| 81 |
-
st.markdown(
|
| 82 |
-
"""Hello! I’m here to assist you with:
|
| 83 |
-
📘 **Glossary Inquiries:** I can clarify terms like "DiGA" for you.
|
| 84 |
-
🆘 **Help Page Navigation:** Ask me if you forgot your password or have other concerns related to the platform.
|
| 85 |
-
|
| 86 |
-
#### How to Interact:
|
| 87 |
-
Type your question or concern below and let me assist you!
|
| 88 |
-
Examples are available at the bottom, feel free to try them out."""
|
| 89 |
-
)
|
| 90 |
|
| 91 |
# Directly specifying the path to the PDF file
|
| 92 |
pdf_path = pdf_file_path
|
|
|
|
| 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.")
|
| 33 |
+
add_vertical_space(3) # Adjust as per the desired spacing
|
|
|
|
| 34 |
|
| 35 |
+
st.markdown("""
|
| 36 |
+
Hello! I’m here to assist you with:<br>
|
| 37 |
+
📘 **Glossary Inquiries:**<br>
|
| 38 |
+
I can clarify terms like "DiGA" for you.<br>
|
| 39 |
+
🆘 **Help Page Navigation:**<br>
|
| 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 |
st.write('Made with ❤️ by BinDoc GmbH')
|
| 45 |
+
|
| 46 |
|
| 47 |
api_key = os.getenv("OPENAI_API_KEY")
|
| 48 |
# Retrieve the API key from st.secrets
|
|
|
|
| 81 |
def main():
|
| 82 |
# Main content
|
| 83 |
st.title("Welcome to BinDocs ChatBot! 🤖")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
# Directly specifying the path to the PDF file
|
| 86 |
pdf_path = pdf_file_path
|