pythonprincess commited on
Commit
fe8d6e5
·
verified ·
1 Parent(s): 9cd554e

Upload requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +50 -0
requirements.txt ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # filename: requirements.txt
2
+ # PAM - Privacy-First AI Assistant
3
+ # Optimized for Hugging Face Spaces (CPU deployment)
4
+
5
+ # ==========================================
6
+ # Web Server / API Framework
7
+ # ==========================================
8
+ fastapi>=0.104.0,<0.110.0
9
+ uvicorn[standard]>=0.23.2,<0.30.0
10
+ pydantic>=2.4.2,<3.0.0
11
+ python-multipart>=0.0.6
12
+ starlette>=0.35.1,<0.40.0
13
+
14
+ # ==========================================
15
+ # HTTP & API Communication
16
+ # ==========================================
17
+ requests>=2.31.0
18
+ httpx>=0.25.0
19
+
20
+ # ==========================================
21
+ # AI/ML Libraries (CPU-optimized)
22
+ # ==========================================
23
+ # NOTE: Transformers is only needed if using local pipelines
24
+ # For HF Inference API (recommended for Spaces), it's optional
25
+ # transformers>=4.35.0,<4.40.0
26
+ # torch>=2.1.0,<2.2.0 # REMOVED - not needed for Inference API
27
+
28
+ # Transformers without torch dependency (for tokenizers only if needed)
29
+ transformers>=4.35.0,<4.40.0
30
+ # Install CPU-only torch if you absolutely need local models
31
+ --extra-index-url https://download.pytorch.org/whl/cpu
32
+ torch>=2.1.0,<2.3.0
33
+
34
+ # ==========================================
35
+ # Utilities & Data Processing
36
+ # ==========================================
37
+ python-dateutil>=2.8.2
38
+ pytz>=2023.3
39
+
40
+ # ==========================================
41
+ # Optional: AWS Integration (if needed)
42
+ # ==========================================
43
+ # boto3>=1.28.69 # Uncomment if using AWS services
44
+
45
+ # ==========================================
46
+ # Development & Debugging (remove in production)
47
+ # ==========================================
48
+ # pytest>=7.4.0
49
+ # black>=23.10.0
50
+ # flake8>=6.1.0