Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Emotion AI – Sentiment Analysis Chatbot

A chat-based sentiment analysis application built using Streamlit, providing real‑time emotional analysis and a clean conversation UI.


Screenshot 2025-11-23 145912 Screenshot 2025-11-23 145912

🚀 How to Run the Project

Follow these steps to run the Emotion AI Chatbot on your local machine:


1️⃣ Clone the Repository

git clone https://github.com/abhinavyy/sentiment_chat.git

2️⃣ Create a Virtual Environment (Recommended)

💻 Windows:

python -m venv venv
venv\Scripts\activate

🍏 macOS/Linux:

python3 -m venv venv
source venv/bin/activate

3️⃣ Install Dependencies

Make sure your requirements.txt is inside the project.

pip install -r requirements.txt

4️⃣ Navigate to the web_page Folder

cd web_page

5️⃣ Run the Streamlit App

streamlit run app.py  # Start the Streamlit server

Streamlit will open automatically in your browser (usually at):

http://localhost:8501/

🧠 Project Structure

web_page
|  │── app.py
|  │── chatbot.py
|  │──conversation.py
|  │──sentiment_analyzer.py
|
│──data
│── assets
│── requirements.txt


📌 Features

✔ Clean chat interface ✔ Message‑level sentiment badges ✔ Emotion trend graph ✔ Positive/negative/neutral counters


🤖 Commands Summary

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

📝 Notes

  • Ensure you have Python 3.9+ installed.
  • Install missing packages manually if needed.
  • If Streamlit doesn't auto-open, open the URL manually.

About

A clean, modern, and interactive chat-based sentiment analysis application built using Streamlit, combining real-time conversation with emotional analytics. The system analyzes each message, detects its emotional tone, and visualizes the user’s overall mood trend throughout the conversation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages