heerjtdev commited on
Commit
a23b0fa
·
verified ·
1 Parent(s): 6a25d35

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +25 -35
requirements.txt CHANGED
@@ -1,40 +1,30 @@
1
 
2
- numpy==1.24.3
3
- scipy==1.11.4
4
- pandas>=2.0.0,<3.0
5
- scikit-learn>=1.3.0,<1.6.0
6
 
7
  # Web Framework
8
  gradio==4.44.0
9
 
10
- # Deep Learning - CPU ONLY
11
- # NOTE: To guarantee CPU-only installation and avoid large GPU packages,
12
- # ensure your installation command (e.g., pip install) is targeted for CPU, or
13
- # use the official PyTorch CPU download URL if you need a specific version.
14
- # Listing 'torch' here should suffice if your environment defaults to CPU.
15
- torch
16
-
17
- # Deep Learning Utilities (For better model export/optimization)
18
- optimum
19
- onnxruntime
20
-
21
- # NLP
22
- transformers==4.37.0
23
- tokenizers>=0.15.0,<0.20.0
24
- TorchCRF==1.1.0
25
-
26
- # Computer Vision
27
- ultralytics>=8.0.0,<8.1.0
28
- opencv-python-headless>=4.8.0,<5.0.0
29
-
30
- # PDF Processing
31
- PyMuPDF>=1.23.0,<1.24.0
32
-
33
- # OCR
34
- pytesseract>=0.3.10
35
-
36
- # Image Processing
37
- Pillow>=10.0.0,<11.0.0
38
-
39
- # Pix2Text - REMOVED (Replaced by direct TrOCR/ORT model call)
40
- # pix2text==1.1.1.2
 
1
 
2
+
 
 
 
3
 
4
  # Web Framework
5
  gradio==4.44.0
6
 
7
+ # Python Version (For reference, set in the Space SDK/Config)
8
+ # Python 3.10.12
9
+
10
+ # Core Libraries
11
+ torch==2.1.0
12
+ numpy==1.26.4
13
+ scipy==1.15.3
14
+ scikit-learn==1.7.1
15
+ Pillow==11.3.0
16
+
17
+ # Document/Image Processing & OCR
18
+ # PyMuPDF is the official package name for the 'fitz' import
19
+ PyMuPDF==1.23.2 # (Example: Replace with your final version from `pip show PyMuPDF`)
20
+ opencv-python==4.11.0
21
+ pytesseract==0.3.13
22
+
23
+ # Deep Learning / NLP / Vision
24
+ transformers==4.53.3
25
+ ultralytics==8.1.47 # (Example: Replace with your final version from `pip show ultralytics`)
26
+ TorchCRF==1.1.0 # (Example: Replace with your final version from `pip show TorchCRF`)
27
+
28
+ # Optimization Libraries (Crucial for optimum.onnxruntime)
29
+ optimum==1.27.0 # (From previous context)
30
+ onnxruntime==1.22.1