Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ml/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# CIVWATCH ML Service — v0.5.0 dependencies

# Core API
fastapi==0.135.1
uvicorn[standard]==0.42.0
pydantic==2.12.5
fastapi==0.136.3
uvicorn[standard]==0.48.0
pydantic==2.13.4
httpx==0.28.1
python-dotenv==1.2.2

# NLP fallback (always installed — used when torch is unavailable)
textblob==0.19.0
textblob==0.20.0

# ML layers — required for DBSCAN + TF-IDF composite scoring
numpy>=1.26.0
Expand All @@ -17,8 +17,8 @@
# DistilBERT transformer stack
# Tier 4 (FP32 CPU) and Tier 1-2 (CUDA/MPS) — comment out if disk space is a constraint
transformers==4.39.3
sentencepiece==0.2.0
torch==2.2.2
sentencepiece==0.2.1
torch==2.12.0

# Tier 3: ONNX quantised inference (best CPU throughput — optional but recommended)
# Install with: pip install optimum[onnxruntime]==1.19.2
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CIVWATCH Python/ML Dependencies
# Core ML/AI Framework
tensorflow>=2.13.0
torch>=2.0.0
torch>=2.12.0
transformers>=4.30.0
scikit-learn>=1.3.0
numpy>=1.24.0
Expand All @@ -23,9 +23,9 @@ seaborn>=0.12.0
plotly>=5.15.0

# Web Framework & API
fastapi>=0.100.0
uvicorn>=0.23.0
pydantic>=2.0.0
fastapi>=0.136.3
uvicorn>=0.48.0
pydantic>=2.13.4
python-multipart>=0.0.6

# Database & Cache
Expand Down
Loading