Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ import os
|
|
17 |
import uuid
|
18 |
import json
|
19 |
|
|
|
20 |
import pandas as pd
|
21 |
import pydeck as pdk
|
22 |
from urllib.error import URLError
|
@@ -623,17 +624,25 @@ def page4():
|
|
623 |
st.error(f"Upsi, an unexpected error occurred: {e}")
|
624 |
# Optionally log the exception details to a file or error tracking service
|
625 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
626 |
def main():
|
627 |
# Sidebar content
|
628 |
with st.sidebar:
|
629 |
st.title('BinDoc GmbH')
|
630 |
-
display_session_id() # Display the session ID in the sidebar
|
631 |
st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
|
632 |
add_vertical_space(1)
|
633 |
page = st.sidebar.selectbox("Choose a page", ["KH_Reform", "Kennzahlenbuch 100 Kennzahlen", "Kosten- und Strukturdaten der Krankenhäuser", "Form"])
|
634 |
-
add_vertical_space(
|
|
|
635 |
st.write('Made with ❤️ by BinDoc GmbH')
|
636 |
|
|
|
637 |
# Main area content based on page selection
|
638 |
if page == "KH_Reform":
|
639 |
page1()
|
@@ -644,6 +653,6 @@ def main():
|
|
644 |
elif page == "Form":
|
645 |
page4()
|
646 |
|
647 |
-
|
648 |
if __name__ == "__main__":
|
649 |
-
main()
|
|
|
|
17 |
import uuid
|
18 |
import json
|
19 |
|
20 |
+
|
21 |
import pandas as pd
|
22 |
import pydeck as pdk
|
23 |
from urllib.error import URLError
|
|
|
624 |
st.error(f"Upsi, an unexpected error occurred: {e}")
|
625 |
# Optionally log the exception details to a file or error tracking service
|
626 |
|
627 |
+
|
628 |
+
def display_session_id():
|
629 |
+
session_id = st.session_state['session_id']
|
630 |
+
st.sidebar.markdown(f"**Your Session ID:** `{session_id}`")
|
631 |
+
st.sidebar.markdown("Use this ID for reference in communications or feedback.")
|
632 |
+
|
633 |
+
# Main function
|
634 |
def main():
|
635 |
# Sidebar content
|
636 |
with st.sidebar:
|
637 |
st.title('BinDoc GmbH')
|
|
|
638 |
st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
|
639 |
add_vertical_space(1)
|
640 |
page = st.sidebar.selectbox("Choose a page", ["KH_Reform", "Kennzahlenbuch 100 Kennzahlen", "Kosten- und Strukturdaten der Krankenhäuser", "Form"])
|
641 |
+
add_vertical_space(4)
|
642 |
+
display_session_id() # Display the session ID in the sidebar
|
643 |
st.write('Made with ❤️ by BinDoc GmbH')
|
644 |
|
645 |
+
|
646 |
# Main area content based on page selection
|
647 |
if page == "KH_Reform":
|
648 |
page1()
|
|
|
653 |
elif page == "Form":
|
654 |
page4()
|
655 |
|
|
|
656 |
if __name__ == "__main__":
|
657 |
+
main()
|
658 |
+
|