# filename: requirements.txt # PAM - Privacy-First AI Assistant # Optimized for Hugging Face Spaces (CPU deployment) # ========================================== # Web Server / API Framework # ========================================== fastapi>=0.104.0,<0.110.0 uvicorn[standard]>=0.23.2,<0.30.0 pydantic>=2.4.2,<3.0.0 python-multipart>=0.0.6 starlette>=0.35.1,<0.40.0 # ========================================== # HTTP & API Communication # ========================================== requests>=2.31.0 httpx>=0.25.0 # ========================================== # AI/ML Libraries (CPU-optimized) # ========================================== # NOTE: Transformers is only needed if using local pipelines # For HF Inference API (recommended for Spaces), it's optional # transformers>=4.35.0,<4.40.0 # torch>=2.1.0,<2.2.0 # REMOVED - not needed for Inference API # Transformers without torch dependency (for tokenizers only if needed) transformers>=4.35.0,<4.40.0 # Install CPU-only torch if you absolutely need local models --extra-index-url https://download.pytorch.org/whl/cpu torch>=2.1.0,<2.3.0 # ========================================== # Utilities & Data Processing # ========================================== python-dateutil>=2.8.2 pytz>=2023.3 # ========================================== # Optional: AWS Integration (if needed) # ========================================== # boto3>=1.28.69 # Uncomment if using AWS services # ========================================== # Development & Debugging (remove in production) # ========================================== # pytest>=7.4.0 # black>=23.10.0 # flake8>=6.1.0