A chat-based sentiment analysis application built using Streamlit, providing real‑time emotional analysis and a clean conversation UI.
Follow these steps to run the Emotion AI Chatbot on your local machine:
git clone https://github.com/abhinavyy/sentiment_chat.gitpython -m venv venv
venv\Scripts\activatepython3 -m venv venv
source venv/bin/activateMake sure your requirements.txt is inside the project.
pip install -r requirements.txtcd web_pagestreamlit run app.py # Start the Streamlit serverStreamlit will open automatically in your browser (usually at):
http://localhost:8501/
web_page
| │── app.py
| │── chatbot.py
| │──conversation.py
| │──sentiment_analyzer.py
|
│──data
│── assets
│── requirements.txt
✔ Clean chat interface ✔ Message‑level sentiment badges ✔ Emotion trend graph ✔ Positive/negative/neutral counters
| Task | Command |
|---|---|
| Activate venv (Windows) | venv\Scripts\activate |
| Activate venv (Mac/Linux) | source venv/bin/activate |
| Install dependencies | pip install -r requirements.txt |
| Run Streamlit app | streamlit run app.py |
- Ensure you have Python 3.9+ installed.
- Install missing packages manually if needed.
- If Streamlit doesn't auto-open, open the URL manually.