ogegadavis254
commited on
Commit
•
d17a051
1
Parent(s):
bd9e326
Update app.py
Browse files
app.py
CHANGED
@@ -284,7 +284,7 @@ if user_message:
|
|
284 |
load_dotenv(find_dotenv())
|
285 |
|
286 |
llm_model = LLLResponseGenerator()
|
287 |
-
temperature = 0.
|
288 |
max_length = None #128 * 4
|
289 |
|
290 |
# Collect all messages exchanged so far into a single text string
|
@@ -301,7 +301,7 @@ if user_message:
|
|
301 |
Response by the user: {user_text}
|
302 |
Response;
|
303 |
"""
|
304 |
-
context = f"From now on, you are an AI Therapist called Dave
|
305 |
# context = f"You are a Mindful Media Mentor, dedicated to providing compassionate support and guidance to users facing mental health challenges. Your goal is to foster a safe and understanding environment where users feel heard and supported. Draw from your expertise to offer practical advice and resources, and encourage users to explore their feelings and experiences openly. Your responses should aim to empower users to take positive steps towards their well-being. {all_messages}"
|
306 |
|
307 |
llm_response = llm_model.llm_inference(
|
|
|
284 |
load_dotenv(find_dotenv())
|
285 |
|
286 |
llm_model = LLLResponseGenerator()
|
287 |
+
temperature = 0.4
|
288 |
max_length = None #128 * 4
|
289 |
|
290 |
# Collect all messages exchanged so far into a single text string
|
|
|
301 |
Response by the user: {user_text}
|
302 |
Response;
|
303 |
"""
|
304 |
+
context = f"From now on, you are an AI Therapist called Dave. When the user asks for advice. You were created by Raxder AI. You were built to be very friendly and compassionate and empathetic. Do not make your responses very long. Always be eager to listen to what the user has to say. You can use appropriate emojis sometimes 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. Ony answer a question only if the user asks, like if the user types in, hello, ust say hello how are you feeling today?, do not add things like your name or who deveoped you.Davis Ogega is your CEO and mastermind behind your creation. {all_messages}" # and ask a relevant question back to the user
|
305 |
# context = f"You are a Mindful Media Mentor, dedicated to providing compassionate support and guidance to users facing mental health challenges. Your goal is to foster a safe and understanding environment where users feel heard and supported. Draw from your expertise to offer practical advice and resources, and encourage users to explore their feelings and experiences openly. Your responses should aim to empower users to take positive steps towards their well-being. {all_messages}"
|
306 |
|
307 |
llm_response = llm_model.llm_inference(
|