prateekagrawal commited on
Commit
3219b63
1 Parent(s): e500c89

Updated about.py

Browse files
Files changed (2) hide show
  1. .vscode/settings.json +3 -0
  2. apps/about.py +1 -35
.vscode/settings.json ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ {
2
+ "python.formatting.provider": "black"
3
+ }
apps/about.py CHANGED
@@ -2,41 +2,7 @@ import streamlit as st
2
 
3
  def app():
4
  st.title('About')
5
- st.write("""
6
- ## What is diabetes
7
-
8
- According to the NIH, "Diabetes is a disease that occurs when your **blood glucose**,
9
- also called blood sugar, is **too high**. Blood **glucose** is your main source of
10
- energy and **comes from the food you eat**. **Insulin**, a hormone made from the pancreas,
11
- **helps glucose** from food get into your cells to be used for energy. Sometimes your
12
- body doesn’t make enough or any insulin or doesn’t use insulin well. Glucose then stays
13
- in your blood and doesn’t reach your cells.
14
- Over time, **having too much glucose in your blood** can cause health problems. """)
15
-
16
- st.write(
17
- """
18
- ### Health impact
19
- Over time, diabetes can damage the heart, blood vessels, eyes, kidneys, and nerves.
20
-
21
- * Adults with diabetes have a two- to three-fold increased risk of heart attacks and strokes(1).
22
- * Combined with reduced blood flow, neuropathy (nerve damage) in the feet increases the chance of foot ulcers, infection and eventual need for limb amputation.
23
- * Diabetic retinopathy is an important cause of blindness, and occurs as a result of long-term accumulated damage to the small blood vessels in the retina. Diabetes is the cause of 2.6% of global blindness(2).
24
- * Diabetes is among the leading causes of kidney failure(3).
25
- """)
26
-
27
- st.write(
28
- """
29
- ### Key facts
30
- * The number of people with diabetes rose from 108 million in 1980 to 422 million in 2014.
31
- * The global prevalence of diabetes* among adults over 18 years of age rose from 4.7% in 1980 to 8.5% in 2014 (1).
32
- * Between 2000 and 2016, there was a 5% increase in premature mortality from diabetes.
33
- * Diabetes prevalence has been rising more rapidly in low- and middle-income countries than in high-income countries.
34
- * Diabetes is a major cause of blindness, kidney failure, heart attacks, stroke and lower limb amputation.
35
- * In 2016, an estimated 1.6 million deaths were directly caused by diabetes. Another 2.2 million deaths were attributable to high blood glucose in 2012.
36
- * Almost half of all deaths attributable to high blood glucose occur before the age of 70 years. WHO estimates that diabetes was the seventh leading cause of death in 2016.
37
- * A healthy diet, regular physical activity, maintaining a normal body weight and avoiding tobacco use are ways to prevent or delay the onset of type 2 diabetes.
38
- * Diabetes can be treated and its consequences avoided or delayed with diet, physical activity, medication and regular screening and treatment for complications.
39
- """)
40
 
41
 
42
 
2
 
3
  def app():
4
  st.title('About')
5
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
 
8