Spaces:
Sleeping
Sleeping
File size: 865 Bytes
2a89678 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# Text Emotion Detection API
This is a Flask-based API that uses a pre-trained transformer model to detect emotions from text.
## How to Run
### 1. Prerequisites
Make sure you have Python 3 and `pip` installed on your system.
### 2. Create a Virtual Environment (Recommended)
It's a good practice to create a virtual environment to manage project dependencies.
```bash
python3 -m venv venv
source venv/bin/activate
```
### 3. Install Dependencies
Install the required Python packages using `pip`:
```bash
pip install -r requirements.txt
```
### 4. Run the Application
Once the dependencies are installed, you can run the Flask application:
```bash
#first run the fix_nlkt.py file
python fix_nltk.py
#once this is succesfull run app.py now you can run /client code in seperate terminal with npm run dev and go to emotionQuestionnare
python app.py
```
|