This is a web application for detecting emotions from text using Python and JavaScript. Users can input text, analyze its emotion (happy, sad, angry, etc.), and view results on the web interface.
server.py: Backend server file (Flask).EmotionDetection/: Contains the emotion detection module.emotion_detection.py: Emotion analysis logic.__init__.py: Module initializer.
static/: JavaScript files for the web interface.mywebscript.js
templates/: HTML files for the web interface.index.html
test_emotion_detection.py: Unit tests for the emotion detection module.snapshot/: Screenshots illustrating project steps.README.md: Documentation.LICENSE: License information.
- Python >= 3.10
- Flask
- Modern web browser
-
Clone the repository:
git clone <repository-url> cd final_project -
Install required libraries:
pip install flask
-
Start the server:
python server.py -
Open your browser and go to:
http://localhost:5000 -
Enter text in the web interface to analyze emotions.
Run unit tests:
python test_emotion_detection.py
To contribute, please create a pull request or contact via GitHub.
See details in the LICENSE file.