Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,11 @@ with g.subgraph(name='cluster_MN') as c:
|
|
30 |
st.graphviz_chart(g)
|
31 |
|
32 |
|
|
|
|
|
|
|
33 |
# Define the cluster relations graph using gvmap
|
34 |
-
g = Graph(format='svg')
|
35 |
g.graph_attr['bgcolor'] = '#FFFFFF'
|
36 |
g.graph_attr['outputorder'] = 'edgesfirst'
|
37 |
g.graph_attr['size'] = '10,10'
|
@@ -63,6 +66,9 @@ with g.subgraph(name='cluster_MN') as c:
|
|
63 |
s1.node(bed_count)
|
64 |
s1.node(specialties)
|
65 |
|
|
|
|
|
|
|
66 |
# Render the graph using streamlit
|
67 |
st.graphviz_chart(g)
|
68 |
|
|
|
30 |
st.graphviz_chart(g)
|
31 |
|
32 |
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
# Define the cluster relations graph using gvmap
|
37 |
+
g = gv.Graph(format='svg')
|
38 |
g.graph_attr['bgcolor'] = '#FFFFFF'
|
39 |
g.graph_attr['outputorder'] = 'edgesfirst'
|
40 |
g.graph_attr['size'] = '10,10'
|
|
|
66 |
s1.node(bed_count)
|
67 |
s1.node(specialties)
|
68 |
|
69 |
+
# Use neato to rearrange the clusters
|
70 |
+
g.layout(prog='neato')
|
71 |
+
|
72 |
# Render the graph using streamlit
|
73 |
st.graphviz_chart(g)
|
74 |
|