datdevsteve commited on
Commit
6fd7903
·
verified ·
1 Parent(s): 028af5a

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +19 -9
requirements.txt CHANGED
@@ -1,9 +1,19 @@
1
- fastapi==0.109.0
2
- uvicorn[standard]==0.27.0
3
- python-multipart==0.0.6
4
- pydantic==2.5.3
5
- transformers>=4.35.0
6
- torch>=2.0.0
7
- Pillow>=10.0.0
8
- numpy>=1.24.0
9
- python-jose[cryptography]==3.3.0
 
 
 
 
 
 
 
 
 
 
 
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