Skip to content

minhakira1/AI-Emotion-Detection

Repository files navigation

Emotion Detection Web Application

Introduction

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.

Folder Structure

  • 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.

Requirements

  • Python >= 3.10
  • Flask
  • Modern web browser

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd final_project
    
  2. Install required libraries:

    pip install flask
    

Running the Application

  1. Start the server:

    python server.py
    
  2. Open your browser and go to:

    http://localhost:5000
    
  3. Enter text in the web interface to analyze emotions.

Testing

Run unit tests:

python test_emotion_detection.py

Contribution

To contribute, please create a pull request or contact via GitHub.

License

See details in the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published