This file provides a brief overview and instructions on how to use the application.
This application detects emotions in user input and responds with an emoji and the name of the detected emotion. The application is built using Python's Streamlit library and a pre-trained model from the Hugging Face Transformers library.
- Detects emotions such as anger, joy, sadness, and more from user-provided text.
- Displays the detected emotion along with a corresponding emoji.
- Simple and intuitive user interface.
-
Clone the repository or download the code files.
-
Navigate to the project directory.
-
Install the required Python packages using
pip
:pip install -r requirements.txt
Usage Run the Streamlit application:
streamlit run emotion_detector.py Enter your text in the input box on the web interface.
The application will detect the emotion and display it along with a relevant emoji.
Dependencies Streamlit: Used for building the web application. Transformers: Provides the pre-trained emotion detection model. Torch: Backend for running the Transformer models. Example
Example of the Emotion Detector showing the detected emotion and corresponding emoji.
License This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements Hugging Face for providing the pre-trained models used in this application.