- Follow the instructions here to enable the Gmail API and generate OAuth Key.
- Add the credentials of Gmail API OAuth key in
conf/credentials.json
- Make sure you have python 3.10.9 downloaded
- Create a pip virtual environment. dependencies are listed in
requirements.txt
:or you can create a conda environment by using-python3 -m venv env source env/bin/activate pip install -r requirements.txt
conda create --name gmail_organizer --file requirements.txt
- Run
main.py
- Either use the model trained on my mails. you have to create those labels by using
option 9 of menu
or you should label most of your mails and train the model on your mails by using option 7 of menu