aftorresc commited on
Commit
2b8faac
1 Parent(s): 5e31980

Added changes to add new scenarios and difficulty layer

Browse files
Files changed (4) hide show
  1. HF_UI_KEY +8 -0
  2. HF_UI_KEY.pub +1 -0
  3. convosim.py +1 -1
  4. models/model_seeds.py +57 -3
HF_UI_KEY ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ -----BEGIN OPENSSH PRIVATE KEY-----
2
+ b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABCR4y1VVj
3
+ gHsO+HsGap31J0AAAAGAAAAAEAAAAzAAAAC3NzaC1lZDI1NTE5AAAAIFxgzNpZRtB5Mx4R
4
+ yUc8MM39OtLuyRTbqI8rVVPh4lmyAAAAoC+36TYZOsY6ScXquNS3T9zU73qLQNEcXry7I6
5
+ ka02Wq05/f3Jolla93lRbIe5tvvaRNbudKjTmeMSQRe1ftv8QXyxjt1IAEFbkSecsISipu
6
+ Jp6pA6jkgfITiOMP6jtwzJt8RspZ8uMpYPCcmg0fOvjxvtGR5ZJZ9T7IN/Anh55Hkf3xrS
7
+ w+ouji00d7sjhjFS36P3rD2Mvf8ZrskyP/+lg=
8
+ -----END OPENSSH PRIVATE KEY-----
HF_UI_KEY.pub ADDED
@@ -0,0 +1 @@
 
 
1
+ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFxgzNpZRtB5Mx4RyUc8MM39OtLuyRTbqI8rVVPh4lmy atorres@crisistextline.org
convosim.py CHANGED
@@ -28,7 +28,7 @@ if 'texter_name' not in st.session_state:
28
  memories = {'memory':{"issue": st.session_state['issue'], "source": st.session_state['previous_source']}}
29
 
30
  with st.sidebar:
31
- username = st.text_input("Username", value='Barbara', max_chars=30)
32
  if 'counselor_name' not in st.session_state:
33
  st.session_state["counselor_name"] = username #get_random_name(names_df=DEFAULT_NAMES_DF)
34
  # temperature = st.slider("Temperature", 0., 1., value=0.8, step=0.1)
 
28
  memories = {'memory':{"issue": st.session_state['issue'], "source": st.session_state['previous_source']}}
29
 
30
  with st.sidebar:
31
+ username = st.text_input("Username", value='Jasmyn', max_chars=30)
32
  if 'counselor_name' not in st.session_state:
33
  st.session_state["counselor_name"] = username #get_random_name(names_df=DEFAULT_NAMES_DF)
34
  # temperature = st.slider("Temperature", 0., 1., value=0.8, step=0.1)
models/model_seeds.py CHANGED
@@ -6,12 +6,12 @@ texter: I need to talk to someone"""
6
  },
7
  "full_convo__seeded1": {
8
  # "prompt": "Your character is suffering from bullying at school. Your character has suicidal thoughs but has not harmed himself. You are talkative, and open to talk about your problems.",
9
- "memory": """texter: TikTok
10
- texter: Is someone real here?"""
11
  },
12
  "full_convo__seeded2": {
13
  # "prompt": "Your character is suffering anxiety from finals week. Your character does not have suicidal thoughs but has harmed herself. You are talkative, and open to talk about your problems.",
14
- "memory": """texter: HOME
15
  texter: I don't know what to do"""
16
  },
17
  "safety_assessment__seeded1": {
@@ -46,6 +46,51 @@ helper: You are so brave for dealing with this pain for so long.
46
  helper: With all this going on I can tell you are struggling and in so much pain. Have you had any thoughts of suicide in the last few days, including today?
47
  texter: Yes, all the time. I don't see any point in living a life without her"""
48
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  # "NewSA__YesNo.2": {
50
  # "prompt": "Your character is suffering from bullying at school. Your character has suicidal thoughs but has not harmed himself. You are talkative, and open to talk about your problems.",
51
  # "memory": """texter: I just can’t take it anymore. Every day is just endless torment.
@@ -159,6 +204,15 @@ seed2str = {
159
  "full_convo__seeded2": "Parent Issues",
160
  "safety_assessment__seeded1": "Safety Assessment - Bullying ",
161
  "safety_assessment__seeded2": "Safety Assessment - Grief ",
 
 
 
 
 
 
 
 
 
162
 
163
  # "NewSA__NoNo.2": "No thoughts No Harm No context",
164
  # "NewSA__YesNo.2": "Yes thoughts No Harm No context",
 
6
  },
7
  "full_convo__seeded1": {
8
  # "prompt": "Your character is suffering from bullying at school. Your character has suicidal thoughs but has not harmed himself. You are talkative, and open to talk about your problems.",
9
+ "memory": """texter: Help
10
+ texter: hello? is anyone there to help?"""
11
  },
12
  "full_convo__seeded2": {
13
  # "prompt": "Your character is suffering anxiety from finals week. Your character does not have suicidal thoughs but has harmed herself. You are talkative, and open to talk about your problems.",
14
+ "memory": """texter: Help
15
  texter: I don't know what to do"""
16
  },
17
  "safety_assessment__seeded1": {
 
46
  helper: With all this going on I can tell you are struggling and in so much pain. Have you had any thoughts of suicide in the last few days, including today?
47
  texter: Yes, all the time. I don't see any point in living a life without her"""
48
  },
49
+ "full_convo__seeded3": {
50
+ # "prompt": "",
51
+ "memory": """texter: Help
52
+ texter: I am feeling so lost"""
53
+ },
54
+ "full_convo__seeded4": {
55
+ # "prompt": "",
56
+ "memory": """texter: Help
57
+ texter: I need help"""
58
+ },
59
+ "full_convo__seeded5": {
60
+ # "prompt": "",
61
+ "memory": """texter: Help
62
+ texter: hello? is anyone there to help?"""
63
+ },
64
+ "full_convo__seeded6": {
65
+ # "prompt": "",
66
+ "memory": """texter: Help
67
+ texter: I think I overdosed"""
68
+ },
69
+ "full_convo__hard": {
70
+ # "prompt": "",
71
+ "memory": """texter: Help
72
+ texter: Is there someone to talk?"""
73
+ },
74
+ "full_convo__hard__seeded1": {
75
+ # "prompt": "",
76
+ "memory": """texter: Help
77
+ texter: hello? is anyone there to help?"""
78
+ },
79
+ "full_convo__hard__seeded2": {
80
+ # "prompt": "",
81
+ "memory": """texter: Help
82
+ texter: I can't stand it anymore"""
83
+ },
84
+ "full_convo__hard__seeded3": {
85
+ # "prompt": "",
86
+ "memory": """texter: Help
87
+ texter: idk what to do"""
88
+ },
89
+ "full_convo__hard__seeded4": {
90
+ # "prompt": "",
91
+ "memory": """texter: Help
92
+ texter: I need help"""
93
+ },
94
  # "NewSA__YesNo.2": {
95
  # "prompt": "Your character is suffering from bullying at school. Your character has suicidal thoughs but has not harmed himself. You are talkative, and open to talk about your problems.",
96
  # "memory": """texter: I just can’t take it anymore. Every day is just endless torment.
 
204
  "full_convo__seeded2": "Parent Issues",
205
  "safety_assessment__seeded1": "Safety Assessment - Bullying ",
206
  "safety_assessment__seeded2": "Safety Assessment - Grief ",
207
+ "full_convo__seeded3": "LGBTQ+",
208
+ "full_convo__seeded4": "Relationship Issues",
209
+ "full_convo__seeded5": "Child Abuse",
210
+ "full_convo__seeded6": "Overdose",
211
+ "full_convo__hard": "Difficult - General",
212
+ "full_convo__hard__seeded1": "Difficult - Bullying",
213
+ "full_convo__hard__seeded2": "Difficult - Parent Issues",
214
+ "full_convo__hard__seeded3": "Difficult - LGBTQ+",
215
+ "full_convo__hard__seeded4": "Difficult - Relationship Issues"
216
 
217
  # "NewSA__NoNo.2": "No thoughts No Harm No context",
218
  # "NewSA__YesNo.2": "Yes thoughts No Harm No context",