Spaces:
Running
Running
Commit
·
c4eb340
1
Parent(s):
669bbf1
app.py
Browse files- requirements.txt +27 -13
requirements.txt
CHANGED
|
@@ -1,13 +1,27 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|