awacke1 commited on
Commit
e4a19b2
Β·
1 Parent(s): 25dfaa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -10
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(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')
@@ -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.")