Update app.py
Browse files
app.py
CHANGED
@@ -6,16 +6,19 @@ from graphviz import Digraph
|
|
6 |
def create_amygdala_hijacking_graph():
|
7 |
g = Digraph('Amygdala_Hijacking', format='png')
|
8 |
|
9 |
-
g.attr(
|
10 |
-
g.attr('node',
|
11 |
-
g.attr('edge', fontname=
|
12 |
-
|
13 |
-
g.
|
14 |
-
g.
|
15 |
-
|
16 |
-
g.node('
|
17 |
-
g.node('
|
18 |
-
g.node('
|
|
|
|
|
|
|
19 |
|
20 |
g.edge('1', '2', label='π Receives Signals')
|
21 |
g.edge('2', '3', label='β‘ Quick, Emotional Response')
|
@@ -29,6 +32,7 @@ def create_amygdala_hijacking_graph():
|
|
29 |
|
30 |
|
31 |
|
|
|
32 |
def main():
|
33 |
st.title("Amygdala Hijacking Visualization")
|
34 |
st.text("A simple graph model to represent amygdala hijacking in the brain.")
|
|
|
6 |
def create_amygdala_hijacking_graph():
|
7 |
g = Digraph('Amygdala_Hijacking', format='png')
|
8 |
|
9 |
+
g.attr(fontname="Helvetica,Arial,sans-serif")
|
10 |
+
g.attr('node', fontname="Helvetica,Arial,sans-serif")
|
11 |
+
g.attr('edge', fontname="Helvetica,Arial,sans-serif")
|
12 |
+
g.attr('graph', newrank='true', nodesep='0.3', ranksep='0.2', overlap='true', splines='false')
|
13 |
+
g.attr('node', fixedsize='false', fontsize='24', height='1', shape='box', style='filled,setlinewidth(5)', width='2.2')
|
14 |
+
g.attr('edge', arrowhead='none', arrowsize='0.5', labelfontname="Ubuntu", weight='10', style='filled,setlinewidth(5)')
|
15 |
+
|
16 |
+
g.node('1', 'π Sensory Input', fillcolor='lightblue')
|
17 |
+
g.node('2', 'π‘ Thalamus', fillcolor='lightgreen')
|
18 |
+
g.node('3', 'π΄ Amygdala', color='red', fillcolor='red', fontcolor='white')
|
19 |
+
g.node('4', 'π Hippocampus', fillcolor='lightyellow')
|
20 |
+
g.node('5', 'π‘ Prefrontal Cortex', fillcolor='lightpink')
|
21 |
+
g.node('6', 'π¬ Response', fillcolor='lightgray')
|
22 |
|
23 |
g.edge('1', '2', label='π Receives Signals')
|
24 |
g.edge('2', '3', label='β‘ Quick, Emotional Response')
|
|
|
32 |
|
33 |
|
34 |
|
35 |
+
|
36 |
def main():
|
37 |
st.title("Amygdala Hijacking Visualization")
|
38 |
st.text("A simple graph model to represent amygdala hijacking in the brain.")
|