Bey007 commited on
Commit
43fc113
·
verified ·
1 Parent(s): c17e34b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
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"{bot_output}\n\nI'm really sorry you're feeling like this. It's completely okay to feel sad and overwhelmed. Your emotions are valid, and it's important to acknowledge them rather than push them aside. Sometimes, hunger can make everything feel more intense, so taking care of your body is just as important as your emotional well-being."
47
 
48
  # Add coping strategies based on the situation
49
- if "hunger" in user_input.lower():
50
- response += "\n\nIf possible, try to get something nourishing to eat. A healthy snack or meal can help soothe the physical discomfort you're feeling and also support your emotional resilience. Remember, it's okay to take breaks for your well-being."
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 the best you can, and it's okay to ask for help when needed. Remember that it's okay to not be okay sometimes. Please be kind to yourself during this challenging time."
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. Its 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 its 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 its okay to take a step back when things feel too much. Your well-being is the most important thing."
54
 
55
  return response
56