Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,16 +43,14 @@ def generate_response(user_input):
|
|
43 |
bot_output = tokenizer.decode(chat_history_ids[0], skip_special_tokens=True)
|
44 |
|
45 |
# Build a more empathetic and thoughtful response
|
46 |
-
response = f"
|
47 |
|
48 |
# Add coping strategies based on the situation
|
49 |
-
if "
|
50 |
-
response += "\n\
|
51 |
-
elif "overwhelmed" in user_input.lower():
|
52 |
-
response += "\n\nIt’s okay to feel like you're carrying a heavy load. Break down your tasks into small, manageable pieces and give yourself permission to take things one step at a time. You don't need to have everything figured out at once. Be gentle with yourself."
|
53 |
|
54 |
# Add general supportive message
|
55 |
-
response += "\n\nYou're doing
|
56 |
|
57 |
return response
|
58 |
|
|
|
43 |
bot_output = tokenizer.decode(chat_history_ids[0], skip_special_tokens=True)
|
44 |
|
45 |
# Build a more empathetic and thoughtful response
|
46 |
+
response = f"I’m really sorry you're feeling like this. It’s completely normal to feel overwhelmed when you're facing a heavy workload. It’s important to acknowledge how you feel and not keep it bottled up. Sometimes, stress and emotional exhaustion can build up, and it’s okay to let yourself feel those emotions."
|
47 |
|
48 |
# Add coping strategies based on the situation
|
49 |
+
if "workload" in user_input.lower():
|
50 |
+
response += "\n\nWhen the workload feels too heavy, it can be helpful to break tasks down into smaller, more manageable steps. Focus on one thing at a time, and remember that it’s okay to take breaks when needed. Asking for support from colleagues or friends is also a good way to lighten the load."
|
|
|
|
|
51 |
|
52 |
# Add general supportive message
|
53 |
+
response += "\n\nYou're doing your best, and that’s all anyone can ask for. Please take care of yourself and know that it’s okay to take a step back when things feel too much. Your well-being is the most important thing."
|
54 |
|
55 |
return response
|
56 |
|