Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -630,31 +630,29 @@ def display_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 |
-
|
636 |
-
|
637 |
-
copy_button = f'''
|
638 |
-
<button onclick='navigator.clipboard.writeText("{session_id}")'>
|
639 |
-
|
640 |
-
</button>
|
641 |
-
'''
|
642 |
-
|
643 |
-
# Place the copy button in the sidebar
|
644 |
-
st.sidebar.markdown(copy_button, unsafe_allow_html=True)
|
645 |
-
st.sidebar.text("Click the button to copy your Session ID to the clipboard.")
|
646 |
-
|
647 |
|
648 |
# Sidebar content
|
649 |
with st.sidebar:
|
650 |
st.title('BinDoc GmbH')
|
651 |
-
st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
|
652 |
-
add_vertical_space(1)
|
653 |
-
page = st.sidebar.selectbox("Choose a page", ["KH_Reform", "Kennzahlenbuch 100 Kennzahlen", "Kosten- und Strukturdaten der Krankenhäuser", "Form"])
|
654 |
-
add_vertical_space(4)
|
655 |
-
display_session_id() # Display the session ID in the sidebar
|
656 |
-
st.write('Made with ❤️ by BinDoc GmbH')
|
657 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
658 |
|
659 |
# Main area content based on page selection
|
660 |
if page == "KH_Reform":
|
@@ -666,6 +664,6 @@ st.sidebar.text("Click the button to copy your Session ID to the clipboard.")
|
|
666 |
elif page == "Form":
|
667 |
page4()
|
668 |
|
|
|
669 |
if __name__ == "__main__":
|
670 |
main()
|
671 |
-
|
|
|
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 |
def main():
|
634 |
+
# Define the HTML for the copy button
|
635 |
+
session_id = st.session_state.get('session_id', 'No Session ID')
|
636 |
+
copy_button = f'''
|
637 |
+
<button onclick='navigator.clipboard.writeText("{session_id}")'>
|
638 |
+
Copy Session ID
|
639 |
+
</button>
|
640 |
+
'''
|
|
|
|
|
|
|
|
|
|
|
641 |
|
642 |
# Sidebar content
|
643 |
with st.sidebar:
|
644 |
st.title('BinDoc GmbH')
|
|
|
|
|
|
|
|
|
|
|
|
|
645 |
|
646 |
+
# Display Session ID
|
647 |
+
st.text(f"Your Session ID: {session_id}")
|
648 |
+
|
649 |
+
# Place the copy button in the sidebar
|
650 |
+
st.markdown(copy_button, unsafe_allow_html=True)
|
651 |
+
st.text("Click the button to copy your Session ID to the clipboard.")
|
652 |
+
|
653 |
+
# Navigation
|
654 |
+
page = st.selectbox("Choose a page", ["KH_Reform", "Kennzahlenbuch 100 Kennzahlen", "Kosten- und Strukturdaten der Krankenhäuser", "Form"])
|
655 |
+
st.text('Made with ❤️ by BinDoc GmbH')
|
656 |
|
657 |
# Main area content based on page selection
|
658 |
if page == "KH_Reform":
|
|
|
664 |
elif page == "Form":
|
665 |
page4()
|
666 |
|
667 |
+
|
668 |
if __name__ == "__main__":
|
669 |
main()
|
|