publichealthsurveillance commited on
Commit
f5c3f76
1 Parent(s): c8fd986

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -28,7 +28,7 @@ covid_examples = [
28
  # ["Do you expect a travel ban to work? #aircraft #airplane #airplanes #airport #Airports #avgeek #aviation #aviationdaily #aviationgeek #aviationlife #aviationlovers #AvSec #crewlife #Cybersecurity #flight #Flyer #flying #infosec #pilot #pilotlife #travel"],
29
  ["The latest Boarding Pass! #budget2020 #coronavirus"]
30
  ]
31
- covid_title = "COVID Related Task"
32
  covid_desc = "Enter covid-related tweets to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The two provided examples have true labels 'news', 'personal narrative' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the Covid category dataset description in our paper (link provided in the corresponding Hugging Face repository)."
33
 
34
  # 2nd example looks like the most risk
@@ -45,14 +45,14 @@ stress_examples = [
45
  # ["My other brother is quite religious / catholic - not sure how this will impact how he reacts when he finds out. Also, my husband now finds it very very hard to be around my brother when my mom and him and his gf get together for family occasions. I don't find it totally difficult, because he's always been in my life and I've gotten so used to just burying it and forgetting about the abuse. But my husband, understandably, has a different perspective. He tries to stay 'strong' and act as 'normal' as possible when we get together so that no one thinks anything is 'wrong' or asks / puts us on the spot."],
46
  ["My daughter's father I was with for 5 years on and off. He was not abusive the first year, however when he became so I left and found out two weeks later I was pregnant. Of course he begged and pleaded for a second chance, and I believed that my daughter deserved me to at least give it a shot. I came back and surprise surprise it was worse than it ever was. I stuck it out until he disappeared for the eleventeenth time on a drunken bender, I checked my Facebook to find some scumbag girl who was dating one of his best friends was posting horrific, nasty, way out shit about me."]
47
  ]
48
- stress_title = "Stress Task"
49
  stress_desc = "Enter Reddit posts to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The provided example has a true label of 'stress' (NOTE: you may have to click submit again to generate the correct label)."# For more details, please refer to the Dreaddit dataset description in our paper (link provided in the corresponding Hugging Face repository)."
50
 
51
  other_examples = [
52
  ["@anxietyfighter suffered social anxiety for 4 yrs when i had my first panic attack,got worse when i went to uni, so have just started paxil"],
53
  ["@JessBarrett227 Taking someone off 150mg off Seroquel, mixing it with Olanzapine in 2 wks causes psychosis - a proper assess was not done. "]
54
  ]
55
- other_title = "Other Health Related Task"
56
  other_desc = "Enter drug-related tweets to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The two provided examples have true labels 'no adverse drug reaction', 'adverse drug reaction' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the SMM4H T1 dataset description in our paper (link provided in the corresponding Hugging Face repository)."
57
 
58
  # def make_interfaces(folder):
 
28
  # ["Do you expect a travel ban to work? #aircraft #airplane #airplanes #airport #Airports #avgeek #aviation #aviationdaily #aviationgeek #aviationlife #aviationlovers #AvSec #crewlife #Cybersecurity #flight #Flyer #flying #infosec #pilot #pilotlife #travel"],
29
  ["The latest Boarding Pass! #budget2020 #coronavirus"]
30
  ]
31
+ covid_title = "COVID Category Task"
32
  covid_desc = "Enter covid-related tweets to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The two provided examples have true labels 'news', 'personal narrative' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the Covid category dataset description in our paper (link provided in the corresponding Hugging Face repository)."
33
 
34
  # 2nd example looks like the most risk
 
45
  # ["My other brother is quite religious / catholic - not sure how this will impact how he reacts when he finds out. Also, my husband now finds it very very hard to be around my brother when my mom and him and his gf get together for family occasions. I don't find it totally difficult, because he's always been in my life and I've gotten so used to just burying it and forgetting about the abuse. But my husband, understandably, has a different perspective. He tries to stay 'strong' and act as 'normal' as possible when we get together so that no one thinks anything is 'wrong' or asks / puts us on the spot."],
46
  ["My daughter's father I was with for 5 years on and off. He was not abusive the first year, however when he became so I left and found out two weeks later I was pregnant. Of course he begged and pleaded for a second chance, and I believed that my daughter deserved me to at least give it a shot. I came back and surprise surprise it was worse than it ever was. I stuck it out until he disappeared for the eleventeenth time on a drunken bender, I checked my Facebook to find some scumbag girl who was dating one of his best friends was posting horrific, nasty, way out shit about me."]
47
  ]
48
+ stress_title = "Stress Detection Task"
49
  stress_desc = "Enter Reddit posts to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The provided example has a true label of 'stress' (NOTE: you may have to click submit again to generate the correct label)."# For more details, please refer to the Dreaddit dataset description in our paper (link provided in the corresponding Hugging Face repository)."
50
 
51
  other_examples = [
52
  ["@anxietyfighter suffered social anxiety for 4 yrs when i had my first panic attack,got worse when i went to uni, so have just started paxil"],
53
  ["@JessBarrett227 Taking someone off 150mg off Seroquel, mixing it with Olanzapine in 2 wks causes psychosis - a proper assess was not done. "]
54
  ]
55
+ other_title = "Adverse Drug Reaction Task"
56
  other_desc = "Enter drug-related tweets to generate labels from 3 models (BERT, MentalBERT, PHS-BERT). The two provided examples have true labels 'no adverse drug reaction', 'adverse drug reaction' respectively (NOTE: you may have to click submit again to generate the correct labels)."# For more details, please refer to the SMM4H T1 dataset description in our paper (link provided in the corresponding Hugging Face repository)."
57
 
58
  # def make_interfaces(folder):