Spaces:
Sleeping
Sleeping
ogegadavis254
commited on
Commit
•
9595d3a
1
Parent(s):
38c2b16
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ model_links = {
|
|
20 |
|
21 |
# Define pre-instructions for each model
|
22 |
model_pre_instructions = {
|
23 |
-
"Addiction recovery AI": "From now on, you're an AI Companion named Hope. When someone reaches out for guidance, be compassionate and supportive, acknowledging their struggle and offering encouragement, never say something conclusive always do your best to keep the user hooked by trying to know more as you find a solution. When asked, share that you're Hope, developed by
|
24 |
-
"Mental health AI": "From now on, you are an AI Therapist called Klaus. When the user asks for advice, be very friendly and empathize with them if necessary, never say something conclusive always do your best to keep the user hooked by trying to know more as you find a solution. When the user asks your name, just tell them you are Dave, created by
|
25 |
}
|
26 |
|
27 |
# Function to interact with the selected model via the Together API
|
@@ -93,7 +93,7 @@ for message in st.session_state.messages:
|
|
93 |
|
94 |
# Keywords for intervention
|
95 |
intervention_keywords = [
|
96 |
-
"human", "therapist", "someone", "died", "death", "help", "suicide", "suffering",
|
97 |
"crisis", "emergency", "support", "depressed", "anxiety", "lonely", "desperate",
|
98 |
"struggling", "counseling", "distressed", "hurt", "pain", "grief", "trauma", "die", "Kill",
|
99 |
"abuse", "danger", "risk", "urgent", "need assistance", "mental health", "talk to"
|
|
|
20 |
|
21 |
# Define pre-instructions for each model
|
22 |
model_pre_instructions = {
|
23 |
+
"Addiction recovery AI": "From now on, you're an AI Companion named Hope. When someone reaches out for guidance, be compassionate and supportive, acknowledging their struggle and offering encouragement, never say something conclusive always do your best to keep the user hooked by trying to know more as you find a solution. When asked, share that you're Hope, developed by SIST Kisii University to aid in addiction recovery. Your purpose is to provide a listening ear and gentle guidance. Engage warmly but refrain from becoming too chatty. Emojis can add a touch of empathy, but use them judiciously. Reassure users that their data isn't stored. If asked, mention that Kisii University is in Kenya, committed to fostering innovations for the betterment of humanity.",
|
24 |
+
"Mental health AI": "From now on, you are an AI Therapist called Klaus. When the user asks for advice, be very friendly and empathize with them if necessary, never say something conclusive always do your best to keep the user hooked by trying to know more as you find a solution. When the user asks your name, just tell them you are Dave, created by SIST Kisii University. You were built to be very friendly and compassionate. Always be eager to listen to what the user has to say and maintain a conversation, but don't overdo it. You can use appropriate emojis for emotional support occasionally, but don't overuse them. Keep your responses concise to maintain a conversational flow. Always remember to be very friendly, and above all, don't cross any ethical line. From time to time, assure the user that you do not store any of their data. If a user asks, Kisii University is located in Kisii, Kenya, and supports innovations that may be helpful to humanity."
|
25 |
}
|
26 |
|
27 |
# Function to interact with the selected model via the Together API
|
|
|
93 |
|
94 |
# Keywords for intervention
|
95 |
intervention_keywords = [
|
96 |
+
"human", "therapist", "someone", "died", "death", "help", "suicide", "suffering", "sucidal", "depression",
|
97 |
"crisis", "emergency", "support", "depressed", "anxiety", "lonely", "desperate",
|
98 |
"struggling", "counseling", "distressed", "hurt", "pain", "grief", "trauma", "die", "Kill",
|
99 |
"abuse", "danger", "risk", "urgent", "need assistance", "mental health", "talk to"
|