- Create a Python virtual environment. Create one using
venv
orvirtualenv
module. If not sure then follow these steps. - Activate the virtual environment.
- Run
pip install -r requirements.txt
. - Download pretrained Dark pattern detection model and place it in
dp_detection
directory. Make sure that it is named asmodel
. - Download pretrained Dark pattern classification model and place it in
dp_classification
directory. Make sure that it is named asmodel
. - Download the
AI4Bharat
models from the official site, and place them in a folder calledmodels
. - Alternatively, you can skip the steps 3-6, and directly use the provided
setup.sh
script to install the dependencies and place the appropiate models at the correct locations. - Run
flask run
.
To debug code and get console logs, run flask run --debug
.