Backend for Focii: An Anti-Procrastination Chrome Extension
- SciPy
- Transformers
- Flask
- NumPy
- PyTorch
pip install -r requirements.txt
We use these scripts on a VPS for the backend. Running the main.py script will start a Flask app that listens for a post request with two lists on the server, and returns a 1 or 0 depending on whether a website should be blocked.
If you wish to run this without a server and flask, you can run block.py (or any other file) directly.
- Create a new python file
- Import block from block.py
- Call block, you can exclude threshold, errorterm, and weight if you wish to use our optimized parameters
block(list1, list2, threshold, errorterm, weight)