Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
|
3 |
# --- SHARED ON ALL PAGES ---
|
4 |
#st.logo(image=":material/medical_information:")
|
5 |
st.logo("images/medical_information_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.png")
|
@@ -32,22 +32,6 @@ about_page = st.Page(
|
|
32 |
default=False)
|
33 |
|
34 |
|
35 |
-
# Create scrollable content
|
36 |
-
for i in range(100):
|
37 |
-
st.write(f"This is scrollable content line {i}")
|
38 |
-
|
39 |
-
# JavaScript to scroll to the bottom
|
40 |
-
scroll_script = """
|
41 |
-
<script>
|
42 |
-
var body = window.parent.document.querySelector(".main");
|
43 |
-
body.scrollTop = body.scrollHeight;
|
44 |
-
</script>
|
45 |
-
"""
|
46 |
-
|
47 |
-
# Inject the JavaScript
|
48 |
-
components.html(scroll_script, height=0, width=0)
|
49 |
-
|
50 |
-
|
51 |
# --- NAVIGATION SETUP ---
|
52 |
#pg = st.navigation(pages=[home_page, type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
|
53 |
pg = st.navigation({"Home": [home_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
|
|
|
1 |
import streamlit as st
|
2 |
+
|
3 |
# --- SHARED ON ALL PAGES ---
|
4 |
#st.logo(image=":material/medical_information:")
|
5 |
st.logo("images/medical_information_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.png")
|
|
|
32 |
default=False)
|
33 |
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
# --- NAVIGATION SETUP ---
|
36 |
#pg = st.navigation(pages=[home_page, type_text_page, upload_file_page, about_page]) # WITHOUT SECTIONS
|
37 |
pg = st.navigation({"Home": [home_page], "Demo": [type_text_page, upload_file_page], "About": [about_page]}) # WITH SECTIONS
|