Spaces:
Sleeping
Sleeping
Update requirements.txt
Browse files- requirements.txt +19 -9
requirements.txt
CHANGED
|
@@ -1,9 +1,19 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use CPU-only PyTorch (critical for HF Spaces)
|
| 2 |
+
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 3 |
+
|
| 4 |
+
# Web / serving (only needed if actually used)
|
| 5 |
+
fastapi>=0.109
|
| 6 |
+
uvicorn[standard]>=0.27
|
| 7 |
+
python-multipart>=0.0.6
|
| 8 |
+
|
| 9 |
+
# Core ML stack
|
| 10 |
+
torch==2.2.2+cpu
|
| 11 |
+
transformers>=4.35
|
| 12 |
+
Pillow>=10.0
|
| 13 |
+
numpy>=1.24
|
| 14 |
+
|
| 15 |
+
# Validation / typing (3.11-compatible wheels exist)
|
| 16 |
+
pydantic>=2.7,<3
|
| 17 |
+
|
| 18 |
+
# Auth / crypto
|
| 19 |
+
python-jose[cryptography]>=3.3.0
|