Detecting Depression Via Twitter
HOW TO RUN LOCALLY
Clone this repo
- in order to get the model locally you will need to use git lfs
- install git lfs - HomeBrew: $ brew install git-lfs - MacPorts: $ port install git-lfs (https://docs.github.com/en/free-pro-team@latest/github/managing-large-files/installing-git-large-file-storage)
- $ git lfs install
- pull model: $ git lfs pull
To create and start virtual environment:
- $ cd depression-detector
- $ cd api
- $ pip install virtualenv
- $ python3 -m venv venv (make sure to run this to name your virtual environment venv)
- $ source venv/bin/activate
To get dependencies:
- $ cd depression-detector
- $ npm install
- $ pip install -r requirements.txt
To start frontend:
- cd depression-detector
- $ yarn start NOTE: if you are having issues with Yarn, please try - MAC: brew install PC: choco install yarn
- open up browser window (please use Chrome) and paste http://localhost:3000.
To start backend:
- switch to a second terminal and navigate to depression-detector
- $ yarn start-api Note: if this doesn't work, make sure your virtual environment is called venv (step 4 above). If not, cd into api and run venv/bin/flask run with your correct virtual env name
If this doesn't work, try again with a new virtual environment :)