awacke1 commited on
Commit
6045b0a
·
1 Parent(s): 6fea598

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -14
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.node('1', 'Sensory Input', shape='oval')
12
- g.node('2', 'Thalamus', shape='oval')
13
- g.node('3', 'Amygdala', shape='oval', color='red', style='filled')
14
- g.node('4', 'Hippocampus', shape='oval')
15
- g.node('5', 'Prefrontal Cortex', shape='oval')
16
- g.node('6', 'Response', shape='oval')
17
-
18
- g.edge('1', '2', label='Receives signals')
19
- g.edge('2', '3', label='Quick, emotional response')
20
- g.edge('2', '4', label='Sends signals to')
21
- g.edge('4', '5', label='Relays information')
22
- g.edge('5', '3', label='Rational control (if not hijacked)')
23
- g.edge('3', '6', label='Generates response')
 
 
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.")