aagamjtdev commited on
Commit
c4eb340
·
1 Parent(s): 669bbf1
Files changed (1) hide show
  1. requirements.txt +27 -13
requirements.txt CHANGED
@@ -1,13 +1,27 @@
1
- # requirements.txt
2
- torch
3
- transformers
4
- gradio
5
- datasets
6
- scikit-learn
7
- pytesseract
8
- Pillow
9
- tqdm
10
- # Required for PDF processing
11
- PyMuPDF
12
- pdf2image
13
- TorchCRF
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CPU-only PyTorch (CRITICAL: Must be first with --extra-index-url)
2
+ --extra-index-url https://download.pytorch.org/whl/cpu
3
+ torch==2.1.0
4
+ torchvision==0.16.0
5
+
6
+ # Core ML/NLP Dependencies
7
+ numpy<2.0.0 # <--- CRITICAL FIX: To avoid 2.x incompatibility
8
+ transformers==4.38.2
9
+ TorchCRF>=1.0.0
10
+ scipy>=1.11.4 # <--- Recommended addition for stability
11
+
12
+ # PDF Processing
13
+ pdfplumber>=0.10.0
14
+ PyMuPDF>=1.23.0
15
+
16
+ # OCR Dependencies
17
+ pytesseract>=0.3.10
18
+ Pillow>=10.0.0
19
+
20
+ # Gradio
21
+ gradio>=4.0.0
22
+
23
+ # Hugging Face Hub (for model downloading)
24
+ huggingface-hub>=0.19.0
25
+
26
+ # Utilities
27
+ tqdm>=4.66.0