a1 / app.py
opinder2906's picture
Update app.py
6afd016 verified
raw
history blame
499 Bytes
# 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