Update pages/home.py
Browse files- pages/home.py +13 -16
pages/home.py
CHANGED
@@ -49,20 +49,17 @@ st.header("Tags the below 41 medical entities")
|
|
49 |
'WEIGHT'
|
50 |
|
51 |
|
52 |
-
#
|
53 |
-
|
54 |
-
|
55 |
|
56 |
-
#
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
# 5. Finally, add the last content item
|
67 |
-
# This forces Streamlit to render the page up to the bottom
|
68 |
-
last_item.write(content[-1])
|
|
|
49 |
'WEIGHT'
|
50 |
|
51 |
|
52 |
+
# Create scrollable content
|
53 |
+
for i in range(100):
|
54 |
+
st.write(f"This is scrollable content line {i}")
|
55 |
|
56 |
+
# Add JavaScript to automatically scroll to the bottom
|
57 |
+
st.markdown("""
|
58 |
+
<script>
|
59 |
+
// Set a timeout to ensure the page has loaded
|
60 |
+
setTimeout(function() {
|
61 |
+
// Get the window object and scroll to the bottom
|
62 |
+
window.scrollTo(0, document.body.scrollHeight);
|
63 |
+
}, 500);
|
64 |
+
</script>
|
65 |
+
""", unsafe_allow_html=True)
|
|
|
|
|
|