arpy8 commited on
Commit
6fdec8e
1 Parent(s): 57a418f

update app

Browse files
__pycache__/_contributors.cpython-311.pyc ADDED
Binary file (575 Bytes). View file
 
__pycache__/_model.cpython-311.pyc ADDED
Binary file (881 Bytes). View file
 
__pycache__/config.cpython-311.pyc ADDED
Binary file (6.58 kB). View file
 
_contributors.py CHANGED
@@ -1,72 +1,6 @@
1
  import streamlit as st
 
2
 
3
  def contributors_page():
4
  st.balloons()
5
- st.write("""
6
- <h1 style="text-align: center; color:#FFF6F4;">A heartfelt thankyou to all our contributors ❤️</h1><hr>
7
- <div style="text-align:center;">
8
- <table>
9
- <tr>
10
- <th width="20%" style="font-size: 140%;">Chapter Name</th>
11
- <th width="20%" style="font-size: 140%;">Chapter Lead</th>
12
- </tr>
13
- <tr>
14
- <td>Omdena Toronto Chapter</td>
15
- <td>Min Htet Myet</td>
16
- </tr>
17
- </table>
18
- <br>
19
- <table>
20
- <tbody>
21
- <tr>
22
- <th width="20%" style="font-size: 140%;" colspan="3">Contributors</th>
23
- </tr>
24
- <tr>
25
- <td>John Doe</td>
26
- <td>John Doe</td>
27
- <td>John Doe</td>
28
- </tr>
29
- <tr>
30
- <td>John Doe</td>
31
- <td>John Doe</td>
32
- <td>John Doe</td>
33
- </tr>
34
- <tr>
35
- <td>John Doe</td>
36
- <td>John Doe</td>
37
- <td>John Doe</td>
38
- </tr>
39
- <tr>
40
- <td>John Doe</td>
41
- <td>John Doe</td>
42
- <td>John Doe</td>
43
- </tr>
44
- <tr>
45
- <td>John Doe</td>
46
- <td>John Doe</td>
47
- <td>John Doe</td>
48
- </tr>
49
- <tr>
50
- <td>John Doe</td>
51
- <td>John Doe</td>
52
- <td>John Doe</td>
53
- </tr>
54
- <tr>
55
- <td>John Doe</td>
56
- <td>John Doe</td>
57
- <td>John Doe</td>
58
- </tr>
59
- <tr>
60
- <td>John Doe</td>
61
- <td>John Doe</td>
62
- <td>John Doe</td>
63
- </tr>
64
- <tr>
65
- <td>John Doe</td>
66
- <td>John Doe</td>
67
- <td>John Doe</td>
68
- </tr>
69
- </tbody>
70
- </table>
71
- </div>
72
- """, unsafe_allow_html=True)
 
1
  import streamlit as st
2
+ from config import CONTRIBUTORS
3
 
4
  def contributors_page():
5
  st.balloons()
6
+ st.write(CONTRIBUTORS, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/banner.png CHANGED
config.py CHANGED
@@ -1,7 +1,24 @@
1
- PROJECT_BACKGROUND = """<h2>Project background</h2><br><p>Brain-related disorders, such as Alzheimer's disease, Parkinson's disease, and Multiple Sclerosis, are a growing global concern. As per the World Health Organization, neurological disorders are responsible for 9% of all deaths globally, and Alzheimer's and other dementias alone are among the top ten leading causes of death worldwide. With a rapidly aging population, these numbers are expected to rise significantly over the coming years. Despite significant advances in medical technology, early detection and accurate diagnosis of these conditions remain challenging. Traditionally, the diagnosis of these disorders has been based on clinical assessments and symptoms. However, these methods are often subjective and may not detect the disease until it has significantly progressed.</p>
2
- Local Chapter Website : <a href="https://www.linkedin.com/company/omdena-toronto-chapter">Visit Site</a><br>
3
- Dagshub Repository : <a href="https://dagshub.com/Omdena/TorontoCanadaChapter_BrainScanImages">Visit Site</a><br>
4
- """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  PROJECT_GOALS = f"""<h2>Project goals</h2><p>
7
  <ul><li>Accurate Identification</li>
@@ -25,7 +42,88 @@ PROJECT_TIMELINE = """
25
  <li>Documentation & Presentation</li></ol>
26
  """
27
 
28
- CSS = open("assets/styles.css", 'r').read()
 
 
29
 
30
- IMG_BANNER = "assets/banner.png"
31
- IMG_LOGO = "assets/logo.png"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CSS = open("assets/styles.css", 'r').read()
2
+
3
+ IMG_BANNER = "assets/banner.png"
4
+ IMG_LOGO = "assets/logo.png"
5
+
6
+
7
+
8
+ SIDEBAR_TEXT_1 = """
9
+ <h1>Omdena Toronto Chapter</h1>
10
+ """
11
+ SIDEBAR_TEXT_2 = """
12
+ <hr>
13
+ <h3 class='sidebar_h1'>Disclaimer</h3>
14
+ <h5 class='sidebar_h1'>The predictions provided by this system are for informational purposes only. Consult a healthcare professional for accurate diagnosis and advice.</h5>
15
+ """
16
+
17
+ PROJECT_BACKGROUND = """
18
+ <h2>Project background</h2><br><p>Brain-related disorders, such as Alzheimer's disease, Parkinson's disease, and Multiple Sclerosis, are a growing global concern. As per the World Health Organization, neurological disorders are responsible for 9% of all deaths globally, and Alzheimer's and other dementias alone are among the top ten leading causes of death worldwide. With a rapidly aging population, these numbers are expected to rise significantly over the coming years. Despite significant advances in medical technology, early detection and accurate diagnosis of these conditions remain challenging. Traditionally, the diagnosis of these disorders has been based on clinical assessments and symptoms. However, these methods are often subjective and may not detect the disease until it has significantly progressed.</p>
19
+ Local Chapter Website : <a href="https://www.linkedin.com/company/omdena-toronto-chapter">Visit Site</a><br>
20
+ Dagshub Repository : <a href="https://dagshub.com/Omdena/TorontoCanadaChapter_BrainScanImages">Visit Site</a><br>
21
+ """
22
 
23
  PROJECT_GOALS = f"""<h2>Project goals</h2><p>
24
  <ul><li>Accurate Identification</li>
 
42
  <li>Documentation & Presentation</li></ol>
43
  """
44
 
45
+ ABOUT_US = """
46
+ ## Introduction to Alzheimer's Disease
47
+ Alzheimer's disease (AD) is a progressive neurodegenerative disease. Though best known for its role in declining memory function, symptoms also include: difficulty thinking and reasoning, making judgements and decisions, and planning and performing familiar tasks. It may also cause alterations in personality and behavior. The cause of AD is not well understood. There is thought to be a significant hereditary component. For example, a variation of the APOE gene, APOE e4, increases risk of Alzheimer's disease.
48
 
49
+ ## Why Early Detection Matters
50
+ Early detection of Alzheimer's disease is paramount because it offers the best chance for effective treatment and improved quality of life. Identifying the condition at its onset allows for timely interventions, which can slow its progression and enable individuals and their families to plan for the future. Early detection also facilitates access to support services and clinical trials, fostering hope for more effective therapies in the fight against this devastating disease.
51
+
52
+ ## Purpose of the project
53
+ The purpose of this project proposal is to develop a machine learning model for the early prediction of Alzheimer's disease. Alzheimer's disease is a devastating neurodegenerative disorder that affects millions of individuals worldwide. Early detection is crucial for better patient care and the development of potential interventions. This project aims to leverage machine learning techniques to create a predictive model that can identify individuals at risk of Alzheimer's disease based on relevant data.
54
+
55
+ <br>
56
+ """
57
+
58
+ VISUALIZATION = """
59
+ <h1 style="text-align: center; color:#FFF6F4 !important;">Visualizations developed during EDA goes here.</h1><hr>
60
+ """
61
+
62
+ CONTRIBUTORS = """
63
+ <h1 style="text-align: center; color:#FFF6F4;">A heartfelt thankyou to all our contributors ❤️</h1><hr>
64
+ <div style="text-align:center;">
65
+ <table>
66
+ <tr>
67
+ <th width="20%" style="font-size: 140%;">Chapter Name</th>
68
+ <th width="20%" style="font-size: 140%;">Chapter Lead</th>
69
+ </tr>
70
+ <tr>
71
+ <td>Omdena Toronto Chapter</td>
72
+ <td>Kausthab Dutta Phukan</td>
73
+ </tr>
74
+ </table>
75
+ <br>
76
+ <table>
77
+ <tbody>
78
+ <tr>
79
+ <th width="20%" style="font-size: 140%;" colspan="3">Contributors</th>
80
+ </tr>
81
+ <tr>
82
+ <td>John Doe</td>
83
+ <td>John Doe</td>
84
+ <td>John Doe</td>
85
+ </tr>
86
+ <tr>
87
+ <td>John Doe</td>
88
+ <td>John Doe</td>
89
+ <td>John Doe</td>
90
+ </tr>
91
+ <tr>
92
+ <td>John Doe</td>
93
+ <td>John Doe</td>
94
+ <td>John Doe</td>
95
+ </tr>
96
+ <tr>
97
+ <td>John Doe</td>
98
+ <td>John Doe</td>
99
+ <td>John Doe</td>
100
+ </tr>
101
+ <tr>
102
+ <td>John Doe</td>
103
+ <td>John Doe</td>
104
+ <td>John Doe</td>
105
+ </tr>
106
+ <tr>
107
+ <td>John Doe</td>
108
+ <td>John Doe</td>
109
+ <td>John Doe</td>
110
+ </tr>
111
+ <tr>
112
+ <td>John Doe</td>
113
+ <td>John Doe</td>
114
+ <td>John Doe</td>
115
+ </tr>
116
+ <tr>
117
+ <td>John Doe</td>
118
+ <td>John Doe</td>
119
+ <td>John Doe</td>
120
+ </tr>
121
+ <tr>
122
+ <td>John Doe</td>
123
+ <td>John Doe</td>
124
+ <td>John Doe</td>
125
+ </tr>
126
+ </tbody>
127
+ </table>
128
+ </div>
129
+ """
main.py CHANGED
@@ -58,16 +58,18 @@ def home_page():
58
 
59
  def main():
60
  st.sidebar.image("assets/logo.png")
61
- st.sidebar.write("<h1 class='sidebar_h1'>Omdena Toronto Chapter</h1>", unsafe_allow_html=True)
62
-
63
- selected_task = st.sidebar.selectbox("Navigate to a task", ["Home", "Model", "Visualization", "Contributors"], label_visibility="hidden")
64
 
65
  if selected_task == "Home":
66
  home_page()
 
 
 
 
67
  elif selected_task == "Model":
68
  model_page()
69
- elif selected_task == "Visualization":
70
- pass
71
  elif selected_task == "Contributors":
72
  contributors_page()
73
 
 
58
 
59
  def main():
60
  st.sidebar.image("assets/logo.png")
61
+ st.sidebar.write(SIDEBAR_TEXT_1, unsafe_allow_html=True)
62
+ selected_task = st.sidebar.selectbox("Please navigate through the different sections of our website from here", ["Home", "About", "Visualization", "Model", "Contributors"], label_visibility="hidden")
63
+ st.sidebar.write(SIDEBAR_TEXT_2, unsafe_allow_html=True)
64
 
65
  if selected_task == "Home":
66
  home_page()
67
+ elif selected_task == "About":
68
+ st.write(ABOUT_US, unsafe_allow_html=True)
69
+ elif selected_task == "Visualization":
70
+ st.write(VISUALIZATION, unsafe_allow_html=True)
71
  elif selected_task == "Model":
72
  model_page()
 
 
73
  elif selected_task == "Contributors":
74
  contributors_page()
75
 
requirements.txt CHANGED
@@ -1,4 +1,2 @@
1
- numpy==1.24.3
2
  streamlit==1.26.0
3
- streamlit_option_menu==0.3.6
4
- tensorflow==2.13.0
 
 
1
  streamlit==1.26.0
2
+ streamlit_option_menu==0.3.6