forked from cuuupid/cog-marker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcog.yaml
49 lines (49 loc) · 1.21 KB
/
cog.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
build:
cuda: "12.1"
gpu: true
python_version: "3.11"
system_packages:
- git
- tree
- wget
- build-essential
- tesseract-ocr
- libtesseract-dev
- libmagic1
- ocrmypdf
- tesseract-ocr-eng
- tesseract-ocr-deu
- tesseract-ocr-por
- tesseract-ocr-spa
- tesseract-ocr-rus
- tesseract-ocr-fra
run:
- "wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10012/ghostscript-10.01.2.tar.gz"
- "tar -xvf ghostscript-10.01.2.tar.gz"
- "cd ghostscript-10.01.2; ls && chmod +x configure && ./configure; make install"
- "rm -rf ghostscript-10.01.2"
- "rm ghostscript-10.01.2.tar.gz"
python_packages:
- scikit-learn==1.3.2
- Pillow==10.1.0
- pytesseract==0.3.10
- PyMuPDF==1.23.5
- pymupdf-fonts==1.0.5
- pydantic==1.10.11
- nougat-ocr==0.1.17
- transformers==4.34.1
- numpy==1.26.1
- python-dotenv==1.0.0
- torch==2.1.1
- ray==2.7.1
- tqdm==4.66.1
- tabulate==0.9.0
- thefuzz==0.20.0
- python-magic==0.4.27
- pyspellchecker==0.7.2
- ftfy==6.1.1
- nltk==3.8.1
- ocrmypdf==15.4.0
- bitsandbytes==0.41.2.post2
- fastapi==0.103.1
predict: "predict.py:Predictor"