Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -632,6 +632,19 @@ def display_session_id():
|
|
632 |
|
633 |
# Main function
|
634 |
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
635 |
# Sidebar content
|
636 |
with st.sidebar:
|
637 |
st.title('BinDoc GmbH')
|
|
|
632 |
|
633 |
# Main function
|
634 |
def main():
|
635 |
+
|
636 |
+
# Define the HTML for the copy button
|
637 |
+
copy_button = f'''
|
638 |
+
<button onclick='navigator.clipboard.writeText("{session_id}")'>
|
639 |
+
Copy Session ID
|
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')
|