Update app.py
Browse files
app.py
CHANGED
@@ -7,24 +7,27 @@ def create_amygdala_hijacking_graph():
|
|
7 |
g = Digraph('Amygdala_Hijacking', format='png')
|
8 |
|
9 |
g.attr(rankdir='LR')
|
10 |
-
|
11 |
-
g.
|
12 |
-
|
13 |
-
g.node('
|
14 |
-
g.node('
|
15 |
-
g.node('
|
16 |
-
g.node('
|
17 |
-
|
18 |
-
g.
|
19 |
-
|
20 |
-
g.edge('
|
21 |
-
g.edge('
|
22 |
-
g.edge('
|
23 |
-
g.edge('
|
|
|
|
|
24 |
|
25 |
return g
|
26 |
|
27 |
|
|
|
28 |
def main():
|
29 |
st.title("Amygdala Hijacking Visualization")
|
30 |
st.text("A simple graph model to represent amygdala hijacking in the brain.")
|
|
|
7 |
g = Digraph('Amygdala_Hijacking', format='png')
|
8 |
|
9 |
g.attr(rankdir='LR')
|
10 |
+
g.attr('node', shape='oval', fontname='Arial', fontsize='16', fontcolor='black')
|
11 |
+
g.attr('edge', fontname='Arial', fontsize='12', fontcolor='blue')
|
12 |
+
|
13 |
+
g.node('1', 'Sensory Input', shape='rect', style='filled', fillcolor='lightblue')
|
14 |
+
g.node('2', 'Thalamus', shape='ellipse', style='filled', fillcolor='lightgreen')
|
15 |
+
g.node('3', 'Amygdala', shape='ellipse', color='red', style='filled', fillcolor='red', fontcolor='white')
|
16 |
+
g.node('4', 'Hippocampus', shape='ellipse', style='filled', fillcolor='lightyellow')
|
17 |
+
g.node('5', 'Prefrontal Cortex', shape='ellipse', style='filled', fillcolor='lightpink')
|
18 |
+
g.node('6', 'Response', shape='rect', style='filled', fillcolor='lightgray')
|
19 |
+
|
20 |
+
g.edge('1', '2', label='Receives Signals')
|
21 |
+
g.edge('2', '3', label='Quick, Emotional Response')
|
22 |
+
g.edge('2', '4', label='Sends Signals To')
|
23 |
+
g.edge('4', '5', label='Relays Information')
|
24 |
+
g.edge('5', '3', label='Rational Control (If Not Hijacked)')
|
25 |
+
g.edge('3', '6', label='Generates Response')
|
26 |
|
27 |
return g
|
28 |
|
29 |
|
30 |
+
|
31 |
def main():
|
32 |
st.title("Amygdala Hijacking Visualization")
|
33 |
st.text("A simple graph model to represent amygdala hijacking in the brain.")
|