LayoutLM_train / requirements.txt
aagamjtdev's picture
app.py
07abef7
raw
history blame contribute delete
607 Bytes
# 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