Akash4911 commited on
Commit
3d06390
Β·
1 Parent(s): 72752d9

Fix: Add spaCy and pre-download en_core_web_sm model for Text Lab

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. requirements.txt +1 -0
Dockerfile CHANGED
@@ -22,7 +22,8 @@ COPY requirements.txt .
22
  RUN pip install --no-cache-dir --upgrade pip
23
 
24
  # Step 1: Core Framework
25
- RUN pip install --no-cache-dir fastapi "uvicorn[standard]" python-multipart python-dotenv pydantic "pydantic-settings" motor "passlib[bcrypt]" PyJWT google-generativeai
 
26
 
27
  # Step 2: Heavy ML Engines (CPU Only)
28
  RUN pip install --no-cache-dir torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu
 
22
  RUN pip install --no-cache-dir --upgrade pip
23
 
24
  # Step 1: Core Framework
25
+ RUN pip install --no-cache-dir fastapi "uvicorn[standard]" python-multipart python-dotenv pydantic "pydantic-settings" email-validator motor "passlib[bcrypt]" PyJWT google-generativeai spacy && \
26
+ python -m spacy download en_core_web_sm
27
 
28
  # Step 2: Heavy ML Engines (CPU Only)
29
  RUN pip install --no-cache-dir torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu
requirements.txt CHANGED
@@ -13,6 +13,7 @@ passlib[bcrypt]
13
  PyJWT
14
 
15
  # ── AI / ML Core ────────────────────────────────────────────────────
 
16
  transformers
17
  accelerate
18
  sentence-transformers
 
13
  PyJWT
14
 
15
  # ── AI / ML Core ────────────────────────────────────────────────────
16
+ spacy
17
  transformers
18
  accelerate
19
  sentence-transformers