From 5f0884a962bb06705126e49fd47a68cd6ccc6d68 Mon Sep 17 00:00:00 2001 From: ipitio <21136719+ipitio@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:40:51 -0400 Subject: [PATCH] don't sync --- .github/workflows/predict.yml | 6 ------ src/main.py | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/predict.yml b/.github/workflows/predict.yml index aafebbf..b639170 100644 --- a/.github/workflows/predict.yml +++ b/.github/workflows/predict.yml @@ -35,12 +35,6 @@ jobs: run: | docker exec -it ocr-pdf bash predict.sh - - name: Sync local - run: | - git pull --rebase --autostash - git merge --abort 2>/dev/null - git pull --rebase --autostash -s ours &>/dev/null - - name: Save predictions id: commit uses: EndBug/add-and-commit@v9 diff --git a/src/main.py b/src/main.py index f158b6d..e54f858 100644 --- a/src/main.py +++ b/src/main.py @@ -44,6 +44,7 @@ def predict(input_file: Path, output_file: Path): # Save the OCR results to a new PDF file doc.save(output_file, garbage=4, deflate=True) doc.close() + gc.collect() print(f"Processed {relative_path}") Parallel(n_jobs=-1)(