Skip to content

Commit cf9227d

Browse files
committed
dl files
1 parent 847b837 commit cf9227d

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ I recommend you use either:
2323
- The Docker image, which runs the Bash script
2424
- A Google Colab or GitHub Actions server, both of which run the Docker image
2525

26-
Read on to find out which is best for you! In any case, the Bash script is, or must be, called like so:
27-
28-
```bash
29-
bash /path/to/predict.sh /folder/containing/todo/ [OCRmyPDF options]
30-
```
31-
32-
For more information, see the [OCRmyPDF documentation](https://ocrmypdf.readthedocs.io/en/latest).
26+
Read on to find out which is best for you! For more information about the options, see the [OCRmyPDF documentation](https://ocrmypdf.readthedocs.io/en/latest).
3327

3428
## Fast Start
3529

@@ -51,25 +45,24 @@ Do you want to run it on your own machine, but don't want to clone the repo?
5145

5246
1. Ensure you have Docker or Bash and cURL installed
5347
2. Make a new `pdf` folder and put your files in `pdf/todo`
54-
3. Run one of the following commands from the parent of `pdf`
48+
3. Run one of the following commands from the parent of `pdf`:
5549

5650
#### Docker Container
5751

5852
If you want to skip building an image, just use mine:
5953

6054
```bash
61-
docker run --rm \
62-
-v ./pdf:/app/pdf \
63-
ghcr.io/ipitio/ocr-pdf \
64-
bash predict.sh pdf [OCRmyPDF options]
55+
docker run --rm -v ./pdf:/app/pdf ghcr.io/ipitio/ocr-pdf \
56+
bash predict.sh pdf [OCRmyPDF options]
6557
```
6658

6759
#### Bash Script
6860

6961
Don't want to install Docker? No problem!
7062

7163
```bash
72-
curl -sSLNZ https://ipitio.github.io/ocr-pdf/src/predict.sh | bash -s -- pdf [OCRmyPDF options]
64+
curl -sSLNZ https://ipitio.github.io/ocr-pdf/src/predict.sh |\
65+
bash -s -- pdf [OCRmyPDF options]
7366
```
7467

7568
## Quick Start

src/predict.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if ! apt_install "$langs"; then
1212
apt_install "$langs"
1313
fi
1414

15+
[ -f main.py ] || curl -sSLNZO https://ipitio.github.io/ocr-pdf/src/main.py
16+
[ -f requirements.txt ] || curl -sSLNZO https://ipitio.github.io/ocr-pdf/src/requirements.txt
1517
[ -d venv ] || python3 -m venv venv
1618

1719
if [[ -e venv/bin/pip3 ]]; then

0 commit comments

Comments
 (0)