awacke1 commited on
Commit
7ae1707
·
1 Parent(s): 148eb19

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -0
app.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from graphviz import Graph
3
+
4
+ # Define the cluster relations graph using gvmap
5
+ g = Graph(format='svg')
6
+ g.graph_attr['bgcolor'] = '#FFFFFF'
7
+ g.graph_attr['outputorder'] = 'edgesfirst'
8
+ g.graph_attr['size'] = '10,10'
9
+ g.node_attr['style'] = 'filled'
10
+ g.node_attr['shape'] = 'box'
11
+
12
+ with g.subgraph(name='cluster_MN') as c:
13
+ c.graph_attr['bgcolor'] = '#ADD8E6'
14
+ c.node_attr['color'] = '#000000'
15
+ c.attr(label='Minnesota')
16
+ c.node('Allina Health', URL='https://www.allinahealth.org/', tooltip='Allina Health: Abbott Northwestern Hospital')
17
+ c.node('Fairview Health Services', URL='https://www.fairview.org/', tooltip='Fairview Health Services: University of Minnesota Medical Center')
18
+ c.node('HealthPartners', URL='https://www.healthpartners.com/', tooltip='HealthPartners: Regions Hospital')
19
+ c.node('Mayo Clinic', URL='https://www.mayoclinic.org/', tooltip='Mayo Clinic: Saint Marys Hospital')
20
+ c.node('CentraCare', URL='https://www.centracare.com/', tooltip='CentraCare: St. Cloud Hospital')
21
+ c.node('Essentia Health', URL='https://www.essentiahealth.org/', tooltip='Essentia Health: St. Mary’s Medical Center')
22
+ c.node('Hennepin Healthcare', URL='https://www.hennepinhealthcare.org/', tooltip='Hennepin Healthcare: HCMC')
23
+ c.node('Children\'s Minnesota', URL='https://www.childrensmn.org/', tooltip='Children\'s Minnesota: Children\'s Hospitals and Clinics of Minnesota')
24
+ c.node('Sanford Health', URL='https://www.sanfordhealth.org/', tooltip='Sanford Health: Sanford Bemidji Medical Center')
25
+ c.node('St. Luke\'s Hospital', URL='https://www.slhduluth.com/', tooltip='St. Luke\'s Hospital: St. Luke\'s Hospital')
26
+
27
+ # Render the graph using streamlit
28
+ st.graphviz_chart(g)