Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
"""
|
6 |
|
7 |
import streamlit as st
|
8 |
-
|
9 |
|
10 |
USER_GROUPS = ["Developer", "Manager", "Practitioner"]
|
11 |
|
@@ -30,39 +30,33 @@ st.session_state['user_group'] = backend
|
|
30 |
st.sidebar.title("About")
|
31 |
st.sidebar.info(
|
32 |
"""
|
33 |
-
Web App URL: <
|
34 |
-
|
|
|
35 |
"""
|
36 |
)
|
37 |
|
38 |
st.sidebar.title("Contact")
|
39 |
st.sidebar.info(
|
40 |
"""
|
41 |
-
|
42 |
-
[GitHub](https://github.com/kaplansinan) | [LinkedIn](https://www.linkedin.com/in/kaplansinan)
|
43 |
"""
|
44 |
)
|
45 |
|
46 |
# Customize page title
|
47 |
-
st.title("
|
48 |
|
49 |
|
50 |
markdown1 = """
|
51 |
-
The framework
|
52 |
|
53 |
-
|
54 |
|
55 |
-
|
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 |
-
|
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)
|
@@ -75,13 +69,15 @@ st.markdown(markdown1)
|
|
75 |
st.header("Framework Sections")
|
76 |
|
77 |
markdown = """
|
78 |
-
|
|
|
|
|
79 |
|
|
|
80 |
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
4. DECISION EXPLORATION: This section is decisgned to explore global and instance level explanations.
|
85 |
"""
|
86 |
|
87 |
st.markdown(markdown)
|
@@ -91,10 +87,13 @@ st.markdown(markdown)
|
|
91 |
st.header("How to Use the Framework")
|
92 |
|
93 |
markdown = """
|
94 |
-
To
|
|
|
|
|
|
|
|
|
95 |
|
96 |
-
|
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)
|
|
|
5 |
"""
|
6 |
|
7 |
import streamlit as st
|
8 |
+
import streamlit.components.v1 as components
|
9 |
|
10 |
USER_GROUPS = ["Developer", "Manager", "Practitioner"]
|
11 |
|
|
|
30 |
st.sidebar.title("About")
|
31 |
st.sidebar.info(
|
32 |
"""
|
33 |
+
Web App URL: <http://testxaiprod-xaiframeworkdemo.rahtiapp.fi/Decision_Exploration_Panel>
|
34 |
+
|
35 |
+
GitHub repository: <https://github.com/>
|
36 |
"""
|
37 |
)
|
38 |
|
39 |
st.sidebar.title("Contact")
|
40 |
st.sidebar.info(
|
41 |
"""
|
42 |
+
John Doe and Jane Doe :[LinkedIn](https://www.linkedin.com/)
|
|
|
43 |
"""
|
44 |
)
|
45 |
|
46 |
# Customize page title
|
47 |
+
st.title("Explainable Artificial Intelligence Framework Case Study - Optical Coherence Tomography Image Analysis by Deep Learning")
|
48 |
|
49 |
|
50 |
markdown1 = """
|
51 |
+
The proposed framework, as presented in our paper, aims to assist in the detection of selected anomalies from Retinal Optical Coherence Tomography (OCT) images. To illustrate the usage of the framework, we have developed a case study that focuses on identifying Choroidal Neovascularization (CNV), Diabetic Macular Edema (DME), Drusen, and normal/healthy retinal conditions.
|
52 |
|
53 |
+
1. [Choroidal Neovascularization (CNV)](https://www.cell.com/cell/fulltext/S0092-8674(18)30154-5) is a type of retinal disease that involves the growth of abnormal blood vessels in the choroid layer of the eye. These new blood vessels can lead to fluid accumulation beneath and within the layers of tissue, causing vision loss.
|
54 |
|
55 |
+
2. [Diabetic Macular Edema (DME)](https://www.cell.com/cell/fulltext/S0092-8674(18)30154-5) is a common complication of diabetes that affects the retina responsible for central vision. This condition occurs when fluid accumulates in and around the macula, leading to retinal thickening and swelling, which can result in impaired vision or blindness if left untreated.
|
|
|
|
|
56 |
|
57 |
+
3. [Drusen](https://www.cell.com/cell/fulltext/S0092-8674(18)30154-5) is a condition associated with early Age-related Macular Degeneration (AMD) in the retina. It involves the accumulation of small deposits of liquid material in the retina, which can lead to vision problems.
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
+
4. Finally, the framework includes a classification model for NORMAL or healthy retina, providing a baseline for comparison with the aforementioned anomalies.
|
60 |
|
61 |
"""
|
62 |
st.markdown(markdown1)
|
|
|
69 |
st.header("Framework Sections")
|
70 |
|
71 |
markdown = """
|
72 |
+
The framework consists of four distinct sections, each focusing on a different aspect of the Artificial Intelligence(AI) application.
|
73 |
+
|
74 |
+
1. The Data Panel provides comprehensive information about the data used in the framework, including the sources, pre-processing techniques, and any relevant characteristics.
|
75 |
|
76 |
+
2. The Model Panel offers insights into the AI model used in the framework, including its architecture, parameters, and training procedures.
|
77 |
|
78 |
+
3. The Performance Evaluation Panel can be used to analyze and report on the performance of the AI model over a test set, providing detailed metrics and visualization of results.
|
79 |
+
|
80 |
+
4. Finally, the Decision Exploration section is designed to explore global and instance-level explanations of the AI model's decision-making process.
|
|
|
81 |
"""
|
82 |
|
83 |
st.markdown(markdown)
|
|
|
87 |
st.header("How to Use the Framework")
|
88 |
|
89 |
markdown = """
|
90 |
+
To utilize the framework efficiently, following the instructions below should be helpful:
|
91 |
+
|
92 |
+
1. Navigate to the left sidebar and select a user group from the available options.
|
93 |
+
|
94 |
+
2. Begin exploring the framework by clicking on the different panels, which are located in the upper left corner of the screen.
|
95 |
|
96 |
+
It is recommend to follow the order of Data Panel, Model Panel, Performance Evaluation Panel, and Decision Exploration Panel to ensure a systematic understanding of the framework's functionality.
|
|
|
97 |
"""
|
98 |
|
99 |
st.markdown(markdown)
|