llepogam commited on
Commit
5eecd7b
·
1 Parent(s): fb94ccc

add spacy in dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. requirements.txt +2 -0
Dockerfile CHANGED
@@ -11,6 +11,9 @@ RUN curl -fsSL https://get.deta.dev/cli.sh | sh
11
  COPY requirements.txt /dependencies/requirements.txt
12
  RUN pip install -r /dependencies/requirements.txt
13
 
 
 
 
14
  COPY . /home/app
15
 
16
  CMD gunicorn app:app --bind 0.0.0.0:$PORT --worker-class uvicorn.workers.UvicornWorker --timeout 120
 
11
  COPY requirements.txt /dependencies/requirements.txt
12
  RUN pip install -r /dependencies/requirements.txt
13
 
14
+ # Download and install SpaCy model
15
+ RUN python -m spacy download en_core_web_sm
16
+
17
  COPY . /home/app
18
 
19
  CMD gunicorn app:app --bind 0.0.0.0:$PORT --worker-class uvicorn.workers.UvicornWorker --timeout 120
requirements.txt CHANGED
@@ -10,3 +10,5 @@ boto3
10
  scikit-learn
11
  python-multipart
12
  tensorflow
 
 
 
10
  scikit-learn
11
  python-multipart
12
  tensorflow
13
+ spacy
14
+ huggingface_hub