Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import graphviz as gv
|
|
3 |
|
4 |
|
5 |
st.set_page_config(page_title="8 Dimensions of Self Care", page_icon=":heart:")
|
6 |
-
st.title("π Self Care π
|
|
|
7 |
|
8 |
st.markdown("""
|
9 |
|
@@ -73,7 +74,6 @@ st.markdown("""
|
|
73 |
3. Maintain a balanced and nutritious diet
|
74 |
4. Limit alcohol and drug consumption
|
75 |
|
76 |
-
|
77 |
""")
|
78 |
|
79 |
|
@@ -147,27 +147,3 @@ for node, _ in dimensions:
|
|
147 |
g.edge('B', node)
|
148 |
|
149 |
st.graphviz_chart(g)
|
150 |
-
|
151 |
-
|
152 |
-
g = gv.Graph(format='svg', engine='twopi')
|
153 |
-
|
154 |
-
g.node('B', label="8 Dimensions of Self Care", shape="ellipse", fontsize="14", style="filled", fillcolor="lightblue")
|
155 |
-
|
156 |
-
dimensions = [
|
157 |
-
('A', "π± Emotional\nHow we feel"),
|
158 |
-
('C', "π Spiritual\nOur beliefs"),
|
159 |
-
('D', "π° Financial\nHow we manage money"),
|
160 |
-
('E', "π‘ Cognitive\nHow we think"),
|
161 |
-
('F', "π― Aptitudinal\nOur abilities"),
|
162 |
-
('G', "π€ Relational\nOur connections"),
|
163 |
-
('H', "π Environmental\nOur surroundings"),
|
164 |
-
('I', "πββοΈ Physical\nOur bodies"),
|
165 |
-
]
|
166 |
-
|
167 |
-
for node, label in dimensions:
|
168 |
-
g.node(node, label=label, shape="ellipse", fontsize="12", style="filled", fillcolor="lightgoldenrodyellow")
|
169 |
-
|
170 |
-
for node, _ in dimensions:
|
171 |
-
g.edge('B', node)
|
172 |
-
|
173 |
-
st.graphviz_chart(g)
|
|
|
3 |
|
4 |
|
5 |
st.set_page_config(page_title="8 Dimensions of Self Care", page_icon=":heart:")
|
6 |
+
st.title("π Self Care π")
|
7 |
+
st.markdown("#### Take Charge of Your Personal Health")
|
8 |
|
9 |
st.markdown("""
|
10 |
|
|
|
74 |
3. Maintain a balanced and nutritious diet
|
75 |
4. Limit alcohol and drug consumption
|
76 |
|
|
|
77 |
""")
|
78 |
|
79 |
|
|
|
147 |
g.edge('B', node)
|
148 |
|
149 |
st.graphviz_chart(g)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|