A Emotion Prediction thru Word or Sentence.
- Python: Make sure to install the right version of Python 3.8.10 here.
- Run the command
pip install -r requirements.txt
- Run the command
- NodeJS: Install the curent latest NodeJS from their website.
- ReactJS: run
npm install
on project folder for installing all the libraries includingReactJS
.
Your prediction model should be added to predict function from the back-end/core/predictor.py
file.
25. def predict(self, sentence) -> str:
26. # enter your model here!
27. pass
The Front-End library the we use is ReactJS
and it's located on front-end/
folder.
- Back-End (Flask)
cd back-end/ && python server.py
- Front-End (ReactJS)
cd front-end/ && npm run dev