-
Install the Tesseract dependencies for OCR. Ubuntu example using apt:
sudo apt install tesseract-ocr tesseract-ocr-fra tesseract-ocr-deu tesseract-ocr-spa tesseract-ocr-eng libgl1 libpq-dev python3-venv python3-dev python3-openslide openslide-tools build-essential poppler-utils
-
Create Python virtual environment
python3 -m venv venv
-
Activate the environnement
source venv/bin/activate
-
Install the python dependencies
pip install -r requirements.txt
-
Download NLP models:
python -m spacy download fr_dep_news_trf
-
Initialize databse:
flask db upgrade
-
Launch the app
flask run
-
Go to 127.0.0.1:5000/ in your web-browser and use the application.
You can register a base user using flask shell:
flask shell
> user = User(username=demo, email=demo@demo.demo)
> user.set_password("demo")
> db.session.add(user)
> db.session.commit()