Be sure to have correct Poetry version 1.2.2 Follow: https://python-poetry.org/blog/announcing-poetry-1.2.0/
Follow steps here: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html
WINDOWS! note: GTK3 installer step ^
install deps
if you have nvidia and cuda on your machine:
poetry install --with cudaelse:
poetry installOR if you're on linux and have rocm:
poetry install --with rocmrun project with:
uvicorn main:app --reload --workers 1 --host 0.0.0.0 --port 8088likely not needed anymore, but if above cuda method doesn't work, install with
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117