heerjtdev commited on
Commit
d64bb44
·
verified ·
1 Parent(s): 01676aa

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +19 -20
requirements.txt CHANGED
@@ -1,39 +1,38 @@
1
- # --- RESOLUTION FOR C COMPILATION ERROR: START ---
2
- # Installing compatible NumPy and SciPy first prevents downstream packages
3
- # from forcing the compilation of older, incompatible versions (like numpy 1.19.3).
4
  numpy==1.24.3
5
  scipy==1.11.4
6
- pandas>=2.0.0 # Add this line - ensures compatible pandas with pre-built wheels
7
- scikit-learn>=1.3.0
8
- # --- RESOLUTION FOR C COMPILATION ERROR: END ---
 
9
 
10
  # Web Framework
11
  gradio==4.44.0
12
 
13
- # Deep Learning Frameworks (CPU only)
14
  torch==2.1.0
15
 
16
- # Transformers and NLP
17
  transformers==4.37.0
18
- tokenizers>=0.15.0
19
  TorchCRF==1.1.0
20
 
21
- # Optimum and ONNX Runtime
22
- optimum==1.17.1
23
- onnxruntime==1.16.3
24
 
25
- # Computer Vision
26
- ultralytics==8.0.196
27
- opencv-python-headless==4.8.1.78
28
 
29
  # PDF Processing
30
- PyMuPDF==1.23.8
31
 
32
  # OCR
33
- pytesseract==0.3.10
34
 
35
  # Image Processing
36
- Pillow==10.1.0
37
 
38
- # Pix2Text
39
- pix2text==1.1.4
 
1
+ # Core scientific packages - install first
 
 
2
  numpy==1.24.3
3
  scipy==1.11.4
4
+ pandas>=2.0.0,<3.0
5
+
6
+ # Machine learning - use flexible versioning
7
+ scikit-learn>=1.3.0,<1.6.0
8
 
9
  # Web Framework
10
  gradio==4.44.0
11
 
12
+ # Deep Learning
13
  torch==2.1.0
14
 
15
+ # NLP
16
  transformers==4.37.0
17
+ tokenizers>=0.15.0,<0.20.0
18
  TorchCRF==1.1.0
19
 
20
+ # Optimization
21
+ optimum==1.17.1
22
+ onnxruntime==1.16.3
23
 
24
+ # Computer Vision - relax these versions
25
+ ultralytics>=8.0.0,<8.1.0
26
+ opencv-python-headless>=4.8.0,<5.0.0
27
 
28
  # PDF Processing
29
+ PyMuPDF>=1.23.0,<1.24.0
30
 
31
  # OCR
32
+ pytesseract>=0.3.10
33
 
34
  # Image Processing
35
+ Pillow>=10.0.0,<11.0.0
36
 
37
+ # Pix2Text - this is the problematic one, consider pinning to an older version
38
+ pix2text>=1.1.0,<1.2.0