File size: 499 Bytes
215ff54
0a6f875
6afd016
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# app.py

from src.inference import predict
from src.responses import get_response

print("EmotiBot 🌿: Hi! How are you feeling today? (Type 'exit' to quit)")

while True:
    user_raw = input("You: ").strip()
    if user_raw.lower() in ["exit", "quit"]:
        print("EmotiBot 🌿: Take care! I’m here whenever you want to talk.")
        break

    emotion = predict(user_raw)
    reply, done = get_response(emotion, user_raw)
    print(f"EmotiBot 🌿: {reply}")
    if done:
        break