Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +13 -11
requirements.txt
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Web Framework
|
| 2 |
gradio==4.44.0
|
| 3 |
|
| 4 |
# Deep Learning Frameworks (CPU only)
|
| 5 |
-
#
|
| 6 |
-
torch==2.1.0
|
| 7 |
-
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 8 |
|
| 9 |
# Transformers and NLP
|
| 10 |
transformers==4.37.0
|
| 11 |
tokenizers>=0.15.0
|
| 12 |
TorchCRF==1.1.0
|
| 13 |
|
| 14 |
-
# Optimum and ONNX Runtime (
|
| 15 |
-
# Pin these to known compatible versions to avoid the original 'rms_norm' conflict.
|
| 16 |
optimum==1.17.1
|
| 17 |
onnxruntime==1.16.3
|
| 18 |
|
|
@@ -29,10 +36,5 @@ pytesseract==0.3.10
|
|
| 29 |
# Image Processing
|
| 30 |
Pillow==10.1.0
|
| 31 |
|
| 32 |
-
#
|
| 33 |
-
numpy==1.24.3
|
| 34 |
-
scipy==1.11.4
|
| 35 |
-
scikit-learn>=1.3.0
|
| 36 |
-
|
| 37 |
-
# Pix2Text (Corrected to the highest available version)
|
| 38 |
pix2text==1.1.4
|
|
|
|
| 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 |
+
scikit-learn>=1.3.0
|
| 7 |
+
# --- RESOLUTION FOR C COMPILATION ERROR: END ---
|
| 8 |
+
|
| 9 |
+
|
| 10 |
# Web Framework
|
| 11 |
gradio==4.44.0
|
| 12 |
|
| 13 |
# Deep Learning Frameworks (CPU only)
|
| 14 |
+
# Simplified PyTorch installation
|
| 15 |
+
torch==2.1.0
|
|
|
|
| 16 |
|
| 17 |
# Transformers and NLP
|
| 18 |
transformers==4.37.0
|
| 19 |
tokenizers>=0.15.0
|
| 20 |
TorchCRF==1.1.0
|
| 21 |
|
| 22 |
+
# Optimum and ONNX Runtime (Pinned for stability)
|
|
|
|
| 23 |
optimum==1.17.1
|
| 24 |
onnxruntime==1.16.3
|
| 25 |
|
|
|
|
| 36 |
# Image Processing
|
| 37 |
Pillow==10.1.0
|
| 38 |
|
| 39 |
+
# Pix2Text (Pinned to the highest available version for Python 3.10)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
pix2text==1.1.4
|