Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,21 @@ USER_GROUPS = ["Developer", "Manager", "Practitioner"]
|
|
12 |
st.set_page_config(layout="wide")
|
13 |
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
st.sidebar.title("About")
|
16 |
st.sidebar.info(
|
17 |
"""
|
@@ -28,37 +43,58 @@ st.sidebar.info(
|
|
28 |
"""
|
29 |
)
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
else:
|
34 |
-
index_tmp = USER_GROUPS.index(st.session_state['user_group'])
|
35 |
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
backend = st.sidebar.selectbox(
|
40 |
-
"Select User-Group ", USER_GROUPS, index=index_tmp
|
41 |
-
)
|
42 |
|
43 |
-
|
44 |
|
45 |
-
|
46 |
-
|
|
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
-
st.header("
|
55 |
|
56 |
markdown = """
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
61 |
"""
|
62 |
|
63 |
st.markdown(markdown)
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
st.set_page_config(layout="wide")
|
13 |
|
14 |
|
15 |
+
if 'user_group' not in st.session_state:
|
16 |
+
index_tmp = 0
|
17 |
+
else:
|
18 |
+
index_tmp = USER_GROUPS.index(st.session_state['user_group'])
|
19 |
+
|
20 |
+
|
21 |
+
#Sidebar for USER GROUPS
|
22 |
+
st.sidebar.title("USER GROUPS")
|
23 |
+
backend = st.sidebar.selectbox(
|
24 |
+
"Select User-Group ", USER_GROUPS, index=index_tmp
|
25 |
+
)
|
26 |
+
|
27 |
+
st.session_state['user_group'] = backend
|
28 |
+
|
29 |
+
|
30 |
st.sidebar.title("About")
|
31 |
st.sidebar.info(
|
32 |
"""
|
|
|
43 |
"""
|
44 |
)
|
45 |
|
46 |
+
# Customize page title
|
47 |
+
st.title("XAI Framework Application-OCT Image Analysis by Deep Learning")
|
|
|
|
|
48 |
|
49 |
|
50 |
+
markdown1 = """
|
51 |
+
The framework is created to briefly illustrate how to use the poposed framework in our paper. Hence, we demonstrate a case study,which aims to detect certain anomalies from Retinal OCT images.
|
|
|
|
|
|
|
52 |
|
53 |
+
This system is developed to classifiy certain anamolies from OCT of retina images. Those anamolies are:
|
54 |
|
55 |
+
1. Choroidal Neovascularization (CNV): neovascular membrane and associated subretinal fluid (Choroidal Neovascularization (CNV) is a retinal disease,which is associated with the growth of
|
56 |
+
abnormal blood vessels in the choroid layer, which lies between two other layers of tissue that make up the wall of the eye.
|
57 |
+
These new blood vessels can cause fluid to accumulate beneath and within these layers, leading to vision loss.)
|
58 |
|
59 |
+
2. Diabetic Macular Edema (DME) : A retinal disease that appears as a result of diabetes in the retina. retinal-thickening-associated intraretinal fluid (arrows).Diabetic Macular Edema (DME) is a common complication of diabetes that affects the retina,
|
60 |
+
which is responsible for central vision. DME occurs when fluid accumulates in and around the macula, causing retinal thickening and swelling.
|
61 |
+
This can lead to impaired vision or even blindness if left untreated.)
|
62 |
+
|
63 |
+
3. Drusen is a condition accosiated with early AMD Age-Related Macular Degeneration (AMD) in the retina.
|
64 |
+
4. NORMAL(HEALTHY): A healthy retina,
|
65 |
+
|
66 |
+
|
67 |
+
"""
|
68 |
+
st.markdown(markdown1)
|
69 |
+
# st.markdown(
|
70 |
+
# """
|
71 |
+
# This system is developed to classifiy certain anamolies from OCT images. Those anamolies are and [leafmap](https://leafmap.org). It is an open-source project and you are very welcome to contribute to the [GitHub repository](https://github.com/giswqs/streamlit-multipage-template).
|
72 |
+
# """
|
73 |
+
# )
|
74 |
|
75 |
+
st.header("Framework Sections")
|
76 |
|
77 |
markdown = """
|
78 |
+
A different users can beenfit from this framework. The framework is divided into 4 different sections and each of them sheds a light at a different part of this AI application.
|
79 |
+
|
80 |
+
|
81 |
+
1. DATA PANEL:This section presents information regarding thedata in details.
|
82 |
+
2. MODEL PANEL: This section presents details regarding AI model.
|
83 |
+
3. PERFORMANCE EVALUATION PANEL: This panel hihglights the performance of the AI model over test set.
|
84 |
+
4. DECISION EXPLORATION: This section is decisgned to explore global and instance level explanations.
|
85 |
"""
|
86 |
|
87 |
st.markdown(markdown)
|
88 |
|
89 |
+
|
90 |
+
|
91 |
+
st.header("How to Use the Framework")
|
92 |
+
|
93 |
+
markdown = """
|
94 |
+
To effectively use the framwork, please follow steps as instrcuted below:
|
95 |
+
|
96 |
+
1. On left sidebar under'USER GROUPS' choose user group
|
97 |
+
2. Start exploring any panel by clicking on them on the upper left corner. We suggest to follow the order as data-> model-> performance-> decision exploration.
|
98 |
+
"""
|
99 |
+
|
100 |
+
st.markdown(markdown)
|