Hassan175 commited on
Commit
f681d88
·
1 Parent(s): 01365ee

update interface description

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -33,7 +33,9 @@ def predict(input_text):
33
 
34
  return prediction
35
 
36
- content = """The issue of suicides and mental health in Iraq is an understudied one due to a lack of organizations focused on measuring, evaluating, or intervening in such cases. This is concerning given that Iraq continues to experience instability.
 
 
37
 
38
  Suicidal ideation, also known as suicidal thoughts, refers to an individual's plans to commit suicide and can be an indicator of suicide risk. Suicidal thoughts can range from brief to substantial and may include significant planning, role-playing, and failed attempts. Adolescents are particularly prone to experiencing suicidal ideation. Early detection of suicidal ideation is an effective technique for preventing suicides.
39
 
@@ -43,6 +45,7 @@ Social media has become a valuable tool for monitoring the mental health and wel
43
  """
44
 
45
 
 
46
  example_1 = ("I am feeling very hopeless and helpless lately Everything seems "
47
  "to be going wrong in my life and I don't see any way out. I have "
48
  "been having thoughts of ending it all and I just can't shake them "
@@ -59,12 +62,7 @@ img_url = "https://healthmatters.nyp.org/wp-content/uploads/2019/09/warning-sign
59
 
60
  description = (f"<img src='{img_url}' width='100%' alt='title image' "
61
  "style='height: 250px; object-fit: cover; border-radius: 15px;'>"
62
- "<br> In today's world, mental health "
63
- "is a growing concern, especially "
64
- "for young people. According to the World Health Organization, "
65
- "suicide is the second leading cause of death among 15-29-year-olds"
66
- " globally, and early identification and intervention can save "
67
- "lives. Our project aims to create an AI-powered web interface "
68
  "that can quickly and accurately detect signs of suicidal thoughts"
69
  " in text inputs. The model is trained on a dataset of texts "
70
  "and utilizes state-of-the-art NLP techniques to analyze the "
 
33
 
34
  return prediction
35
 
36
+ content = """In today's world, mental health is a growing concern, especially for young people. According to the World Health Organization, suicide is the second leading cause of death among 15-29-year-olds globally, and early identification and intervention can save lives.
37
+
38
+ The issue of suicides and mental health in Iraq is an understudied one due to a lack of organizations focused on measuring, evaluating, or intervening in such cases. This is concerning given that Iraq continues to experience instability.
39
 
40
  Suicidal ideation, also known as suicidal thoughts, refers to an individual's plans to commit suicide and can be an indicator of suicide risk. Suicidal thoughts can range from brief to substantial and may include significant planning, role-playing, and failed attempts. Adolescents are particularly prone to experiencing suicidal ideation. Early detection of suicidal ideation is an effective technique for preventing suicides.
41
 
 
45
  """
46
 
47
 
48
+
49
  example_1 = ("I am feeling very hopeless and helpless lately Everything seems "
50
  "to be going wrong in my life and I don't see any way out. I have "
51
  "been having thoughts of ending it all and I just can't shake them "
 
62
 
63
  description = (f"<img src='{img_url}' width='100%' alt='title image' "
64
  "style='height: 250px; object-fit: cover; border-radius: 15px;'>"
65
+ "<br> Our project aims to create an AI-powered web interface "
 
 
 
 
 
66
  "that can quickly and accurately detect signs of suicidal thoughts"
67
  " in text inputs. The model is trained on a dataset of texts "
68
  "and utilizes state-of-the-art NLP techniques to analyze the "