Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +19 -20
requirements.txt
CHANGED
|
@@ -1,39 +1,38 @@
|
|
| 1 |
-
#
|
| 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
|
| 7 |
-
|
| 8 |
-
#
|
|
|
|
| 9 |
|
| 10 |
# Web Framework
|
| 11 |
gradio==4.44.0
|
| 12 |
|
| 13 |
-
# Deep Learning
|
| 14 |
torch==2.1.0
|
| 15 |
|
| 16 |
-
#
|
| 17 |
transformers==4.37.0
|
| 18 |
-
tokenizers>=0.15.0
|
| 19 |
TorchCRF==1.1.0
|
| 20 |
|
| 21 |
-
#
|
| 22 |
-
optimum==1.17.1
|
| 23 |
-
onnxruntime==1.16.3
|
| 24 |
|
| 25 |
-
# Computer Vision
|
| 26 |
-
ultralytics
|
| 27 |
-
opencv-python-headless
|
| 28 |
|
| 29 |
# PDF Processing
|
| 30 |
-
PyMuPDF
|
| 31 |
|
| 32 |
# OCR
|
| 33 |
-
pytesseract
|
| 34 |
|
| 35 |
# Image Processing
|
| 36 |
-
Pillow
|
| 37 |
|
| 38 |
-
# Pix2Text
|
| 39 |
-
pix2text
|
|
|
|
| 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
|