-
Notifications
You must be signed in to change notification settings - Fork 1
/
depression.py
52 lines (49 loc) · 7.17 KB
/
depression.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import streamlit as st
from PIL import Image
def dep():
st.title("Learn More About Depression")
st.image(["Images/dep.jpg"],use_column_width=100)
st.write("Depression is a mood disorder that causes a persistent feeling of sadness and loss of interest. Also called major depressive disorder or clinical depression, it affects how you feel, think and behave and can lead to a variety of emotional and physical problems. You may have trouble doing normal day-to-day activities, and sometimes you may feel as if life isn't worth living. \n More than just a bout of the blues, depression isn't a weakness and you can't simply SNAP OUT of it. Depression may require long-term treatment. But don't get discouraged. \n Most people with depression feel better with medication, psychotherapy or both.Depression can make you feel alone but you have lots of company. Major depressive disorder (MDD), the clinical term for depression, is one of the most common mental health conditions, affecting an estimated 350 million people in all age groups. You should know that depression isn’t the same as being sad. It’s normal to feel blue or unmotivated from time to time, but depression is more constant.")
st.subheader("Symptoms")
st.write("Although depression may occur only once during your life, people typically have multiple episodes. During these episodes, symptoms occur most of the day, nearly every day and may include:")
"\n"
st.write("⭑ Feelings of sadness, tearfulness, emptiness or hopelessness ")
st.write(
"⭑ Angry outbursts, irritability or frustration, even over small matters")
st.write("⭑ Loss of interest or pleasure in most or all normal activities, such as sex, hobbies or sports")
st.write("⭑ Sleep disturbances, including insomnia or sleeping too much ")
st.write(
"⭑ Tiredness and lack of energy, so even small tasks take extra effort ")
st.write(
"⭑ Reduced appetite and weight loss or increased cravings for food and weight gain ")
st.write("⭑ Slowed thinking, speaking or body movements,`Feelings of worthlessness or guilt, fixating on past failures or self-blame ")
st.write(
"⭑ Trouble thinking, concentrating, making decisions and remembering things ")
st.write("⭑ Frequent or recurrent thoughts of death, suicidal thoughts, suicide attempts or suicide")
st.write("⭑ Unexplained physical problems, such as back pain or headaches")
"\n"
st.write("Not everyone who is depressed experiences every symptom. Some people experience only a few symptoms while others may experience many. Several persistent symptoms in addition to low mood are required for a diagnosis of major depression, but people with only a few – but distressing – symptoms may benefit from treatment of their “subsyndromal” depression. The severity and frequency of symptoms and how long they last will vary depending on the individual and his or her particular illness. Symptoms may also vary depending on the stage of the illness.")
"\n"
st.subheader("Types of Depression Disorder")
st.image("Images/deptype.PNG")
st.write("Some forms of depression are slightly different, or they may develop under unique circumstances, such as:")
st.write("⭒ Persistent depressive disorder (also called dysthymia) is a depressed mood that lasts for at least two years. A person diagnosed with persistent depressive disorder may have episodes of major depression along with periods of less severe symptoms, but symptoms must last for two years to be considered persistent depressive disorder.")
st.write("⭒ Postpartum depression is much more serious than the “baby blues” (relatively mild depressive and anxiety symptoms that typically clear within two weeks after delivery) that many women experience after giving birth. Women with postpartum depression experience full-blown major depression during pregnancy or after delivery (postpartum depression). The feelings of extreme sadness, anxiety, and exhaustion that accompany postpartum depression may make it difficult for these new mothers to complete daily care activities for themselves and/or for their babies.")
st.write("⭒ Psychotic depression occurs when a person has severe depression plus some form of psychosis, such as having disturbing false fixed beliefs (delusions) or hearing or seeing upsetting things that others cannot hear or see (hallucinations). The psychotic symptoms typically have a depressive “theme,” such as delusions of guilt, poverty, or illness.")
st.write("⭒ Seasonal affective disorder is characterized by the onset of depression during the winter months, when there is less natural sunlight. This depression generally lifts during spring and summer. Winter depression, typically accompanied by social withdrawal, increased sleep, and weight gain, predictably returns every year in seasonal affective disorder.")
st.write("⭒ Bipolar disorder is different from depression, but it is included in this list is because someone with bipolar disorder experiences episodes of extremely low moods that meet the criteria for major depression (called “bipolar depression”). But a person with bipolar disorder also experiences extreme high – euphoric or irritable – moods called “mania” or a less severe form called “hypomania.”")
st.write("Examples of other types of depressive disorders newly added to the diagnostic classification of DSM-5 include disruptive mood dysregulation disorder (diagnosed in children and adolescents) and premenstrual dysphoric disorder (PMDD).")
st.subheader("When To Get Help!!")
st.write("If you feel depressed, make an appointment to see your doctor or mental health professional as soon as you can. If you're reluctant to seek treatment, talk to a friend or loved one, any health care professional, a faith leader, or someone else you trust. \n If you think you may hurt yourself or attempt suicide, call 911 or your local emergency number immediately.\n If you have a loved one who is in danger of suicide or has made a suicide attempt, make sure someone stays with that person. ")
"\n"
st.subheader("Things You Can Do")
st.write(" Depression is usually treated with medications, psychotherapy, or a combination of the two. If these treatments do not reduce symptoms, electroconvulsive therapy (ECT) and other brain stimulation therapies may be options to explore.")
"\n"
st.write("Here are other tips that may help you or a loved one during treatment for depression:")
st.write("⭐ Try to be active and exercise.")
st.write("⭐ Set realistic goals for yourself.")
st.write("⭐ Try to spend time with other people and confide in a trusted friend or relative.")
st.write("⭐ Try not to isolate yourself, and let others help you.")
st.write("⭐ Expect your mood to improve gradually, not immediately.")
st.write("⭐ Postpone important decisions, such as getting married or divorced, or changing jobs until you feel better. Discuss decisions with others who know you well and have a more objective view of your situation.")
st.write("⭐ Continue to educate yourself about depression.")