Spaces:
Sleeping
Sleeping
| # 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 | |