fix register not working due to wrong url_for parameter and update README.md for a better solution to easyocr

This commit is contained in:
csd4ni3l
2025-08-12 15:51:15 +02:00
parent 27f379e0ca
commit c5f882c32c
2 changed files with 5 additions and 12 deletions

View File

@@ -2,17 +2,10 @@ A captcha/login page which only allows you to register if you post an image of y
To install, you have to install everything in requirements.txt or do uv sync, but you also have to install easyocr.
On my machine, i did this because i wanted to install the CPU version of torch or otherwise it would install NVIDIA bloat.
If you want to do the same, do:
If you want to do the same, add `extra-index-url`:
```bash
uv pip install torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
uv pip install easyocr
uv pip install easyocr --extra-index-url https://download.pytorch.org/whl/cpu
```
or the same without uv if you use pip.
If you want to install it with GPU acceleration for the OCR part, do:
```bash
uv pip install easyocr
```
or the same without uv if you use pip.
Dont add the flag if you have a dedicated GPU on the computer where you host the project.
Run the command without uv if you use pip.