File size: 607 Bytes
c4eb340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d04f976
 
07abef7
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
# CPU-only PyTorch (CRITICAL: Must be first with --extra-index-url)
--extra-index-url https://download.pytorch.org/whl/cpu
torch==2.1.0
torchvision==0.16.0

# Core ML/NLP Dependencies
numpy<2.0.0           # <--- CRITICAL FIX: To avoid 2.x incompatibility
transformers==4.38.2
TorchCRF>=1.0.0
scipy>=1.11.4         # <--- Recommended addition for stability

# PDF Processing
pdfplumber>=0.10.0
PyMuPDF>=1.23.0

# OCR Dependencies
pytesseract>=0.3.10
Pillow>=10.0.0

# Gradio
gradio>=4.0.0

# Hugging Face Hub (for model downloading)
huggingface-hub>=0.19.0

# Utilities
tqdm>=4.66.0

scikit-learn
pdf2image