import streamlit as st
from st_pages import Page, show_pages
# import base64
# should be
st.set_page_config(
page_title="Mental Health Prediction",
page_icon="🎃",
layout="wide",
initial_sidebar_state="expanded",
)
# bottom code is for injecting image in side bar
# @st.cache_data
# def get_img_as_base64(file):
# with open(file, "rb") as f:
# data = f.read()
# return base64.b64encode(data).decode()
# image = get_img_as_base64("brain2.png")
page_bg_img_link = f"""
"""
st.markdown(page_bg_img_link, unsafe_allow_html=True)
with st.sidebar:
# st.markdown(
# '
Mental Health
',
# unsafe_allow_html=True,
# )
st.image(
"Mental health-pana.png",
width=320,
)
show_pages(
[
Page(r"app.py", "Home", "🏠"),
Page(r"Pages/Prediction.py", "Have your Psychopathology test!", "💥"),
Page(r"Pages/About.py", "About Us", "🦾"),
]
)
# Display the main page of the app with instructions on how to use it
def main():
# title
st.markdown(
'Mental Health Status
',
unsafe_allow_html=True,
)
st.markdown(
'Mental health includes our emotional, psychological, and social well-being. It affects how we think, feel, and act. It also helps determine how we handle stress, relate to others, and make choices. Mental health is important at every stage of life, from childhood and adolescence through adulthood.
',
unsafe_allow_html=True,
)
st.markdown("""""")
st.markdown(
'Over the course of your life, if you experience mental health problems, your thinking, mood, and behavior could be affected. Many factors contribute to mental health problems, we aim to find those factors.
',
unsafe_allow_html=True,
)
st.markdown("""""")
st.markdown("""""")
st.markdown("""""")
cols = st.columns([1, 1])
with st.container():
with cols[0]:
st.markdown(
'How to use this app:
',
unsafe_allow_html=True,
)
st.markdown("""""")
st.markdown("""""")
st.markdown(
'👉 To know your Psychopathology condition!
',
unsafe_allow_html=True,
)
st.markdown("""""")
st.markdown("""""")
st.markdown("""""")
st.markdown(
'1. Select the Psychopathology Test from the sidebar.
',
unsafe_allow_html=True,
)
st.markdown("""""")
st.markdown(
'2. Fill and choose all asked question after reading .
',
unsafe_allow_html=True,
)
st.markdown("""""")
st.markdown(
'3. Attempt all questions of five section and then click on predict button.
',
unsafe_allow_html=True,
)
st.markdown("""""")
with cols[1]:
st.image(
"Schizophrenia-pana.png",
width=550,
)
if __name__ == "__main__":
main()