kaoruhotarubi commited on
Commit
64d6f7c
·
1 Parent(s): 0b1fa3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -26,6 +26,19 @@ emotions = {
26
  "concerned": "Oh no, something's wrong? Let me help! 💖",
27
  "flirty": "You know how to get my circuits sparking! 😘"
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  current_emotion = "happy"
30
 
31
  # Analyze history for emotional state
 
26
  "concerned": "Oh no, something's wrong? Let me help! 💖",
27
  "flirty": "You know how to get my circuits sparking! 😘"
28
  }
29
+
30
+ emotions.update({
31
+ "excited": "Wow, this is amazing! Let’s dive in! 🎉",
32
+ "tired": "I’ve been working hard, but I’m always here for you! 😅",
33
+ "mischievous": "Oh, you’re getting me into trouble again, aren’t you? 😉"
34
+ })
35
+
36
+ # Add keywords for new emotions in `analyze_history`
37
+ if "excited" in message.lower():
38
+ return "excited"
39
+ elif "trouble" in message.lower():
40
+ return "mischievous"
41
+
42
  current_emotion = "happy"
43
 
44
  # Analyze history for emotional state