https://github.com/putuwaw/ed-bert
Emotion Detection using BERT
https://github.com/putuwaw/ed-bert
app-a-thon bert mysql streamlit
Last synced: 4 months ago
JSON representation
Emotion Detection using BERT
- Host: GitHub
- URL: https://github.com/putuwaw/ed-bert
- Owner: putuwaw
- License: mit
- Created: 2023-05-08T01:06:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-24T01:50:56.000Z (almost 3 years ago)
- Last Synced: 2023-09-24T09:51:05.226Z (almost 3 years ago)
- Topics: app-a-thon, bert, mysql, streamlit
- Language: Python
- Homepage: https://ed-bert.streamlit.app
- Size: 744 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ed-bert






Emotional Detection using Bidirectional Encoder Representations from Transformers (BERT).
## Features 🚀
Using ED-BERT, you can:
- [x] Detect emotion from text.
- [x] Report incorrect prediction and save the data on database.
- [x] Train your own model with additional data from database.
## Prerequisites 📋
- Python 3.10 or higher
- Streamlit 1.25.0 or higher
- MySQL 8.0.32 or higher
- Docker 24.0.4 or higher (optional)
- docker-compose 1.29.2 or higher (optional)
## Installation 🛠
## Manual Installation
- Clone the repository
```bash
git clone https://github.com/putuwaw/ed-bert.git
```
- Create virtual environment and activate it
```bash
python -m venv venv
source venv/bin/activate
```
- Install the dependencies
```bash
pip install -r requirements.txt
```
- Set up database using SQL dump in [init.sql](db/init.sql) file.
- Run the app
```bash
streamlit run Home.py
```
> [!IMPORTANT]
> This repository contain .h5 file which is the model of ED-BERT. Please consider to read about Git Large File Storage.
## Docker Installation
- Clone the repository
```bash
git clone https://github.com/putuwaw/ed-bert.git
```
- Run the app
```bash
docker-compose up
```
## License 📝
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.